diff options
author | Andrew Childs <lorne@cons.org.nz> | 2020-11-19 16:57:41 +0900 |
---|---|---|
committer | Andrew Childs <lorne@cons.org.nz> | 2021-03-02 17:21:08 +0900 |
commit | b26e0bac8dab068e54b0c8ee1bf8fd5fe5683b39 (patch) | |
tree | d31897867bc162531de55579409c79b614747642 /pkgs/build-support | |
parent | fc0456bed1372ccff51fc6fd578e5d2a09d64534 (diff) |
bintools-wrapper: set -arch on darwin
Diffstat (limited to 'pkgs/build-support')
-rw-r--r-- | pkgs/build-support/bintools-wrapper/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/build-support/bintools-wrapper/default.nix b/pkgs/build-support/bintools-wrapper/default.nix index 8fef2ca6624c..c255f43dfcd8 100644 --- a/pkgs/build-support/bintools-wrapper/default.nix +++ b/pkgs/build-support/bintools-wrapper/default.nix @@ -305,6 +305,10 @@ stdenv.mkDerivation { done '' + + optionalString stdenv.targetPlatform.isDarwin '' + echo "-arch ${targetPlatform.darwinArch}" >> $out/nix-support/libc-ldflags + '' + + '' for flags in "$out/nix-support"/*flags*; do substituteInPlace "$flags" --replace $'\n' ' ' |