bintools-wrapper: set -arch on darwin
This commit is contained in:
parent
fc0456bed1
commit
b26e0bac8d
|
@ -305,6 +305,10 @@ stdenv.mkDerivation {
|
||||||
done
|
done
|
||||||
''
|
''
|
||||||
|
|
||||||
|
+ optionalString stdenv.targetPlatform.isDarwin ''
|
||||||
|
echo "-arch ${targetPlatform.darwinArch}" >> $out/nix-support/libc-ldflags
|
||||||
|
''
|
||||||
|
|
||||||
+ ''
|
+ ''
|
||||||
for flags in "$out/nix-support"/*flags*; do
|
for flags in "$out/nix-support"/*flags*; do
|
||||||
substituteInPlace "$flags" --replace $'\n' ' '
|
substituteInPlace "$flags" --replace $'\n' ' '
|
||||||
|
|
Loading…
Reference in New Issue