3
0
Fork 0
forked from mirrors/nixpkgs

cc-wrapper: fix darwin

Clang doesn't support -fstack-check=specific, only -fstack-check. Still a
noop, though.
This commit is contained in:
Franz Pletz 2017-06-22 02:44:04 +02:00
parent bf08c50cbc
commit c3a8595276
No known key found for this signature in database
GPG key ID: 846FDED7792617B4

View file

@ -52,7 +52,7 @@ if [[ ! $hardeningDisable =~ "all" ]]; then
;; ;;
stackcheck) stackcheck)
if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: enabling stackcheck >&2; fi if [[ -n "$NIX_DEBUG" ]]; then echo HARDENING: enabling stackcheck >&2; fi
hardeningCFlags+=('-fstack-check=specific') hardeningCFlags+=('-fstack-check')
;; ;;
*) *)
echo "Hardening flag unknown: $flag" >&2 echo "Hardening flag unknown: $flag" >&2