make configure try to disable stack protector

in theory we could support stack protector in the libc itself, and
users wanting to experiment with such usage could add
-fstack-protector to CFLAGS intentionally. but to avoid breakage in
the default case, override broken distro-patched gcc that forces stack
protector on.
This commit is contained in:
Rich Felker 2012-06-06 22:00:08 -04:00
parent 08f70a30c0
commit 0c5efde8d0
1 changed files with 2 additions and 0 deletions

2
configure vendored
View File

@ -263,6 +263,8 @@ tryflag CFLAGS_AUTO -Wno-unused-but-set-variable
tryflag CFLAGS_AUTO -Wno-unknown-pragmas
fi
# Some patched GCC builds have these defaults messed up...
tryflag CFLAGS_AUTO -fno-stack-protector
tryldflag LDFLAGS_AUTO -Wl,--hash-style=sysv