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

The wrapped bintools and the one used to build the wrapper can differ.
This commit is contained in:
sternenseemann 2021-09-17 17:06:24 +02:00
parent cbc084187a
commit fb1348d433

View file

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