From 5a545ca9bdf59c18b123d2a99dccdd1a173a749d Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Sat, 14 Apr 2018 14:05:09 +0200 Subject: [PATCH 1/2] Fix stdenv-native by creating a bintools wrapper with similar settings --- pkgs/stdenv/native/default.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/stdenv/native/default.nix b/pkgs/stdenv/native/default.nix index 19efac3700a6..78f7a82d2952 100644 --- a/pkgs/stdenv/native/default.nix +++ b/pkgs/stdenv/native/default.nix @@ -119,14 +119,23 @@ in }; stdenvNoCC = stdenv; - cc = import ../../build-support/cc-wrapper { - name = "cc-native"; - nativeTools = true; - nativeLibc = true; + cc = let nativePrefix = { # switch "i686-solaris" = "/usr/gnu"; "x86_64-solaris" = "/opt/local/gcc47"; }.${system} or "/usr"; + in + import ../../build-support/cc-wrapper { + name = "cc-native"; + nativeTools = true; + nativeLibc = true; + inherit nativePrefix; + bintools = import ../../build-support/bintools-wrapper { + name = "bintools"; + inherit stdenvNoCC nativePrefix; + nativeTools = true; + nativeLibc = true; + }; inherit stdenvNoCC; }; From a7adffdd47dbf0be6c1ad08295c28b0de1e75adf Mon Sep 17 00:00:00 2001 From: Sander van der Burg Date: Sat, 14 Apr 2018 14:06:09 +0200 Subject: [PATCH 2/2] Fix invalid Baseaddress must be > 0x200000000 on cygwin --- pkgs/stdenv/cygwin/rebase-x86_64.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/stdenv/cygwin/rebase-x86_64.sh b/pkgs/stdenv/cygwin/rebase-x86_64.sh index 77adc52d53b6..4c8f8ebd7eb2 100644 --- a/pkgs/stdenv/cygwin/rebase-x86_64.sh +++ b/pkgs/stdenv/cygwin/rebase-x86_64.sh @@ -8,7 +8,7 @@ _cygwinFixAutoImageBase() { if [ -f /etc/rebasenix.nextbase ]; then NEXTBASE="$(