hardening: initial cross support

This commit is contained in:
Charles Strahan
2018-03-06 18:03:13 -05:00
parent fc46895e86
commit 634c748050
4 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -135,7 +135,8 @@ source @out@/nix-support/add-hardening.sh
# Add the flags for the C compiler proper.
extraAfter=($NIX_@infixSalt@_CFLAGS_COMPILE)
extraBefore=("${hardeningCFlags[@]}")
extraBefore=(${hardeningCFlags[@]+"${hardeningCFlags[@]}"})
if [ "$dontLink" != 1 ]; then