diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2021-12-28 11:04:36 +0800 |
---|---|---|
committer | Moritz Angermann <moritz.angermann@gmail.com> | 2022-01-01 20:30:56 +0800 |
commit | 14996789a1803ebef231f5d7ce6193a76ac0f9b1 (patch) | |
tree | 563eeef917f3374c519b773f339d60f262c447ae /pkgs/build-support/bintools-wrapper | |
parent | 4ef64693425b71d687c0a9381cedf83b71006e39 (diff) |
Check link type based on expanded parameters
So far we've ignored response files in arguments, and did not check linkType against expanded parameters. This means if we have `-static` in a @reponse-file, linkType will not be set to `-static` as we never check against the expanded arguments from response files.
Diffstat (limited to 'pkgs/build-support/bintools-wrapper')
-rw-r--r-- | pkgs/build-support/bintools-wrapper/ld-wrapper.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/bintools-wrapper/ld-wrapper.sh b/pkgs/build-support/bintools-wrapper/ld-wrapper.sh index 2f96480f80c1c..fb01c5096d5b6 100644 --- a/pkgs/build-support/bintools-wrapper/ld-wrapper.sh +++ b/pkgs/build-support/bintools-wrapper/ld-wrapper.sh @@ -30,7 +30,7 @@ expandResponseParams "$@" if [[ -n "${NIX_LINK_TYPE_@suffixSalt@:-}" ]]; then linkType=$NIX_LINK_TYPE_@suffixSalt@ else - linkType=$(checkLinkType "$@") + linkType=$(checkLinkType "${params[@]}") fi if [[ "${NIX_ENFORCE_PURITY:-}" = 1 && -n "${NIX_STORE:-}" |