diff options
author | Dan Peebles <pumpkin@me.com> | 2017-05-05 21:34:16 -0400 |
---|---|---|
committer | Dan Peebles <pumpkin@me.com> | 2017-05-05 21:34:28 -0400 |
commit | c217f59344d6fc8e2299be9a6cdd248d72eae2fd (patch) | |
tree | 75f3b6b04217401b00d879657394bbf3cfbfe354 /pkgs/stdenv/darwin/make-bootstrap-tools.nix | |
parent | a1748f7b5ccae44501eb30e1e4e9fc2fabbbb0bf (diff) |
darwin.make-bootstrap-tools.test: fix build breakage
In the extremely unlikely case that our store hash path ends in several
digits (as is the case right now), the Darwin ld will try to interpret
those digits as a version number and barf. To avoid that, we pass in the
SDK version explicitly to stop it from trying to figure it out from iffy
context.
Diffstat (limited to 'pkgs/stdenv/darwin/make-bootstrap-tools.nix')
-rw-r--r-- | pkgs/stdenv/darwin/make-bootstrap-tools.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/stdenv/darwin/make-bootstrap-tools.nix b/pkgs/stdenv/darwin/make-bootstrap-tools.nix index 4f651575d6aa..65f0cba51f72 100644 --- a/pkgs/stdenv/darwin/make-bootstrap-tools.nix +++ b/pkgs/stdenv/darwin/make-bootstrap-tools.nix @@ -301,8 +301,8 @@ in rec { export flags="-idirafter ${unpack}/include-Libsystem --sysroot=${unpack} -L${unpack}/lib" export CPP="clang -E $flags" - export CC="clang $flags -Wl,-rpath,${unpack}/lib -Wl,-v" - export CXX="clang++ $flags --stdlib=libc++ -lc++abi -isystem${unpack}/include/c++/v1 -Wl,-rpath,${unpack}/lib -Wl,-v" + export CC="clang $flags -Wl,-rpath,${unpack}/lib -Wl,-v -Wl,-sdk_version,10.10" + export CXX="clang++ $flags --stdlib=libc++ -lc++abi -isystem${unpack}/include/c++/v1 -Wl,-rpath,${unpack}/lib -Wl,-v -Wl,-sdk_version,10.10" echo '#include <stdio.h>' >> foo.c echo '#include <float.h>' >> foo.c |