bintools-wrapper: check if bintools to wrap isGNU, not stdenv

The wrapped bintools and the one used to build the wrapper can differ.
main
sternenseemann 3 years ago
parent cbc084187a
commit fb1348d433
  1. 2
      pkgs/build-support/bintools-wrapper/default.nix

@ -327,7 +327,7 @@ stdenv.mkDerivation {
###
### Remove LC_UUID
###
+ optionalString (stdenv.targetPlatform.isDarwin && !(stdenv.cc.bintools.bintools.isGNU or false)) ''
+ optionalString (stdenv.targetPlatform.isDarwin && !(bintools.isGNU or false)) ''
echo "-no_uuid" >> $out/nix-support/libc-ldflags-before
''

Loading…
Cancel
Save