From 763f4bef0d7bec67a90ced2dedbafc9bc46de6de Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Wed, 29 Nov 2006 10:54:41 +0000 Subject: 2006-11-29 Thomas Schwinge * 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. --- Makefile.am | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Makefile.am') 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) -- cgit v1.2.3