cc-wrapper: Add additional NIX_DEBUG statements

This commit is contained in:
Tristan Helmich 2016-03-11 14:02:07 +01:00
parent 7e2e0dfe7a
commit 1a5acdb695

View file

@ -8,7 +8,10 @@ if [[ "$($LD -z 2>&1)" =~ "unknown option" ]]; then
hardeningDisable+=(bindnow relro)
fi
if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: Value of '$hardeningDisable': $hardeningDisable >&2; fi
if [[ ! $hardeningDisable == "all" ]]; then
if [[ -n "$NIX_DEBUG" ]]; then echo 'HARDENING: Is active (not completely disabled with "all" flag)' >&2; fi
for flag in "${hardeningFlags[@]}"
do
if [[ ! "${hardeningDisable[@]}" =~ "$flag" ]]; then