From 8feccaed7861010caefa4f7b9824a612a78e3043 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Wed, 31 Oct 2007 21:30:09 -0500 Subject: Use an autoconf macro to see if -fstack-protector is available Signed-off-by: Dan McGee --- configure.ac | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 366eefa9..d93cea84 100644 --- a/configure.ac +++ b/configure.ac @@ -254,8 +254,10 @@ if test "x$debug" = "xyes" ; then AC_DEFINE([PACMAN_DEBUG], , [Enable debug code]) # Check for mcheck AC_CHECK_HEADERS([mcheck.h]) - - CFLAGS="$CFLAGS -g -Wall -Werror -fstack-protector-all" + # Check for -fstack-protector availability + GCC_STACK_PROTECT_LIB + GCC_STACK_PROTECT_CC + CFLAGS="$CFLAGS -Wall -Werror" else AC_MSG_RESULT(no) CFLAGS="$CFLAGS -Wall" -- cgit v1.2.3-24-g4f1b