make configure try to disable stack protector
authorRich Felker <dalias@aerifal.cx>
Thu, 7 Jun 2012 02:00:08 +0000 (22:00 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 7 Jun 2012 02:00:08 +0000 (22:00 -0400)
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.

configure

index 25b2d805cb6cf2862e32cb34d73b6bf4aea43f73..02aef43a61037d5e64e79c2de3b1fcd93443121e 100755 (executable)
--- a/configure
+++ b/configure
@@ -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