bintools-wrapper: set -arch on darwin

This commit is contained in:
Andrew Childs 2020-11-19 16:57:41 +09:00
parent fc0456bed1
commit b26e0bac8d

View file

@ -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' ' '