diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2006-11-29 10:54:41 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-06-18 00:26:56 +0200 |
commit | 763f4bef0d7bec67a90ced2dedbafc9bc46de6de (patch) | |
tree | 2cc4d968f89b98c7ac567b89560c6a324078466c /Makefile.am | |
parent | 6c69296d41273d98e59b84000bf93c37c7ff5f03 (diff) | |
download | gnumach-763f4bef0d7bec67a90ced2dedbafc9bc46de6de.tar.gz gnumach-763f4bef0d7bec67a90ced2dedbafc9bc46de6de.tar.bz2 gnumach-763f4bef0d7bec67a90ced2dedbafc9bc46de6de.zip |
2006-11-29 Thomas Schwinge <tschwinge@gnu.org>
* configure.ac (disable_smashing_stack_protector): New conditional, set
depending on the compiler accepting `-fstack-protector' or not.
* Makefile.am (CFLAGS): Add `-fno-stack-protector' if
`disable_smashing_stack_protector' is set.
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index 3fc70758..cb07e2f3 100644 --- a/Makefile.am +++ b/Makefile.am @@ -58,6 +58,13 @@ AM_CFLAGS += \ AM_CFLAGS += \ -fno-strict-aliasing +# The smashing stack protector might be enabled by default, but might emit +# unsuitable code. +if disable_smashing_stack_protector +AM_CFLAGS += \ + -fno-stack-protector +endif + # For pre Automake 1.10. AM_CCASFLAGS += \ $(AM_CPPFLAGS) |