audit: use hostPlatform.isStatic instead of targetPlatform.isStatic

(cherry picked from commit 0034539abab37c4cfbc281a084cf111a16e8a21d)
This commit is contained in:
Marco A L Barbosa 2021-06-18 18:45:21 -03:00 committed by John Ericson
parent 265e982c9d
commit b8b8cfa29c
1 changed files with 1 additions and 1 deletions

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 = {