Update pkgs/build-support/bintools-wrapper/ld-wrapper.sh

Co-authored-by: John Ericson <git@JohnEricson.me>
This commit is contained in:
Jörg Thalheim
2021-05-24 15:44:01 +01:00
committed by GitHub
co-authored by John Ericson
parent 166948d479
commit 602b5f8747
@@ -24,7 +24,9 @@ fi
# Optionally filter out paths not refering to the store.
expandResponseParams "$@"
# NIX_LINK_TYPE is set if ld has been called through our cc wrapper
# NIX_LINK_TYPE is set if ld has been called through our cc wrapper. We take
# advantage of this to avoid both recalculating it, and also repeating other
# processing cc wrapper has already done.
if [[ -n "${NIX_LINK_TYPE_@suffixSalt@:-}" ]]; then
linkType=$NIX_LINK_TYPE_@suffixSalt@
else