diff options
author | Charles Strahan <charles@cstrahan.com> | 2018-03-05 21:27:00 -0500 |
---|---|---|
committer | Charles Strahan <charles@cstrahan.com> | 2018-03-06 00:30:09 -0500 |
commit | fc46895e86a33232abbcf8dcee9033d5c58d2f2d (patch) | |
tree | 1af5acbe105683242240f13ece84391296723852 /pkgs/build-support/cc-wrapper | |
parent | cc7ce57f86b0cff87ac74074d45c993cf4ccf6ab (diff) |
hardening: allow user supplied flags to override
Put hardening flags before user supplied flags.
Diffstat (limited to 'pkgs/build-support/cc-wrapper')
-rw-r--r-- | pkgs/build-support/cc-wrapper/cc-wrapper.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/build-support/cc-wrapper/cc-wrapper.sh b/pkgs/build-support/cc-wrapper/cc-wrapper.sh index c2e6c1406358f..d1018193e5ae8 100644 --- a/pkgs/build-support/cc-wrapper/cc-wrapper.sh +++ b/pkgs/build-support/cc-wrapper/cc-wrapper.sh @@ -134,8 +134,8 @@ fi source @out@/nix-support/add-hardening.sh # Add the flags for the C compiler proper. -extraAfter=($NIX_@infixSalt@_CFLAGS_COMPILE "${hardeningCFlags[@]}") -extraBefore=() +extraAfter=($NIX_@infixSalt@_CFLAGS_COMPILE) +extraBefore=("${hardeningCFlags[@]}") if [ "$dontLink" != 1 ]; then |