bintools-wrapper: set -arch on darwin
This commit is contained in:
parent
fc0456bed1
commit
b26e0bac8d
1 changed files with 4 additions and 0 deletions
|
@ -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' ' '
|
||||
|
|
Loading…
Reference in a new issue