summary refs log tree commit diff
path: root/pkgs/build-support/bintools-wrapper/add-flags.sh
diff options
context:
space:
mode:
authorCharles Strahan <charles@cstrahan.com>2018-03-06 18:03:13 -0500
committerCharles Strahan <charles@cstrahan.com>2018-03-06 18:03:13 -0500
commit634c748050391b6f7c908d4716be026f839dceaf (patch)
tree31743ea7ae464a0312dfc7179babb7f28ca64a17 /pkgs/build-support/bintools-wrapper/add-flags.sh
parentfc46895e86a33232abbcf8dcee9033d5c58d2f2d (diff)
downloadnixlib-634c748050391b6f7c908d4716be026f839dceaf.tar
nixlib-634c748050391b6f7c908d4716be026f839dceaf.tar.gz
nixlib-634c748050391b6f7c908d4716be026f839dceaf.tar.bz2
nixlib-634c748050391b6f7c908d4716be026f839dceaf.tar.lz
nixlib-634c748050391b6f7c908d4716be026f839dceaf.tar.xz
nixlib-634c748050391b6f7c908d4716be026f839dceaf.tar.zst
nixlib-634c748050391b6f7c908d4716be026f839dceaf.zip
hardening: initial cross support
Diffstat (limited to 'pkgs/build-support/bintools-wrapper/add-flags.sh')
-rw-r--r--pkgs/build-support/bintools-wrapper/add-flags.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/bintools-wrapper/add-flags.sh b/pkgs/build-support/bintools-wrapper/add-flags.sh
index ce213897ee3f..a97809258954 100644
--- a/pkgs/build-support/bintools-wrapper/add-flags.sh
+++ b/pkgs/build-support/bintools-wrapper/add-flags.sh
@@ -24,10 +24,10 @@ if [ "${NIX_BINTOOLS_WRAPPER_@infixSalt@_TARGET_TARGET:-}" ]; then
 fi
 
 for var in "${var_templates_list[@]}"; do
-    mangleVarList "$var" "${role_infixes[@]}"
+    mangleVarList "$var" ${role_infixes[@]+"${role_infixes[@]}"}
 done
 for var in "${var_templates_bool[@]}"; do
-    mangleVarBool "$var" "${role_infixes[@]}"
+    mangleVarBool "$var" ${role_infixes[@]+"${role_infixes[@]}"}
 done
 
 if [ -e @out@/nix-support/libc-ldflags ]; then