Merge pull request #138290 from sternenseemann/bintools-check-to-wrap

bintools-wrapper: check if bintools to wrap isGNU, not stdenv
This commit is contained in:
John Ericson 2021-09-17 11:57:08 -04:00 committed by GitHub
commit 8730fcbd45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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