Merge pull request #127417 from malbarbo/audit-host

This commit is contained in:
Sandro 2021-06-20 17:56:17 +02:00 committed by GitHub
commit 92493fc7ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ stdenv.mkDerivation rec {
# --whole-archive linker flag is required to be sure that linker
# correctly chooses strong version of symbol regardless of order of
# object files at command line.
+ lib.optionalString stdenv.targetPlatform.isStatic ''
+ lib.optionalString stdenv.hostPlatform.isStatic ''
export LDFLAGS=-Wl,--whole-archive
'';
meta = {