summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-06-06 22:00:08 -0400
committerRich Felker <dalias@aerifal.cx>2012-06-06 22:00:08 -0400
commit0c5efde8d06670e8709e3bff548921b05a7da692 (patch)
tree77c9c3d8a4e3e3f93231d0da208c56425929ec61 /configure
parent08f70a30c00c587856a95d5951fb486269e4f651 (diff)
downloadmusl-0c5efde8d06670e8709e3bff548921b05a7da692.tar.gz
musl-0c5efde8d06670e8709e3bff548921b05a7da692.tar.bz2
musl-0c5efde8d06670e8709e3bff548921b05a7da692.tar.xz
musl-0c5efde8d06670e8709e3bff548921b05a7da692.zip
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.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 2 insertions, 0 deletions
diff --git a/configure b/configure
index 25b2d805..02aef43a 100755
--- 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