about summary refs log tree commit diff
path: root/pkgs/build-support
diff options
context:
space:
mode:
authorSergei Trofimovich <slyich@gmail.com>2022-07-22 18:38:02 +0100
committerSergei Trofimovich <slyich@gmail.com>2022-07-22 18:38:02 +0100
commit17f413f2930f90d0f5de1121f310693c31a7cd0e (patch)
tree3602567858da580f87b389932ceff7e193ddda22 /pkgs/build-support
parent6b4900c1f19295fbf734848fd7a7f6aa56195a42 (diff)
setup-hooks/strip.sh: use STRIP_FOR_TARGET, not TARGET_STRIP
Since 1ac53985 "*-wrapper; Switch from `infixSalt` to `suffixSalt`"
(2020) 'TARGET_' prefix (and infix) is no more. '_FOR_TARGET' suffix
is the only used suffix for target-specific tools and flags.

Use that in stip instead of always-empty variable.
Diffstat (limited to 'pkgs/build-support')
-rw-r--r--pkgs/build-support/setup-hooks/strip.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/setup-hooks/strip.sh b/pkgs/build-support/setup-hooks/strip.sh
index 2d8e66a89fa33..a23b203aff56f 100644
--- a/pkgs/build-support/setup-hooks/strip.sh
+++ b/pkgs/build-support/setup-hooks/strip.sh
@@ -7,10 +7,10 @@ _doStrip() {
     # to $out anyways---if it does, that's a bigger problem that a lack of
     # stripping will help catch.
     local -ra flags=(dontStripHost dontStripTarget)
-    local -ra stripCmds=(STRIP TARGET_STRIP)
+    local -ra stripCmds=(STRIP STRIP_FOR_TARGET)
 
     # Optimization
-    if [[ "${STRIP-}" == "${TARGET_STRIP-}" ]]; then
+    if [[ "${STRIP-}" == "${STRIP_FOR_TARGET-}" ]]; then
         dontStripTarget+=1
     fi