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

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