Fix stdenv-native by creating a bintools wrapper with similar settings

+13 -4
+13 -4
pkgs/stdenv/native/default.nix
··· 119 119 }; 120 120 stdenvNoCC = stdenv; 121 121 122 - cc = import ../../build-support/cc-wrapper { 123 - name = "cc-native"; 124 - nativeTools = true; 125 - nativeLibc = true; 122 + cc = let 126 123 nativePrefix = { # switch 127 124 "i686-solaris" = "/usr/gnu"; 128 125 "x86_64-solaris" = "/opt/local/gcc47"; 129 126 }.${system} or "/usr"; 127 + in 128 + import ../../build-support/cc-wrapper { 129 + name = "cc-native"; 130 + nativeTools = true; 131 + nativeLibc = true; 132 + inherit nativePrefix; 133 + bintools = import ../../build-support/bintools-wrapper { 134 + name = "bintools"; 135 + inherit stdenvNoCC nativePrefix; 136 + nativeTools = true; 137 + nativeLibc = true; 138 + }; 130 139 inherit stdenvNoCC; 131 140 }; 132 141