From: David Herrmann Date: Thu, 12 Sep 2013 16:07:54 +0000 (+0200) Subject: Reintroduce -fstack-protector X-Git-Tag: libevdev-0.4~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5e65ea3ce2541fe8ccfafe9b0dd04325da75b34;p=platform%2Fupstream%2Flibevdev.git Reintroduce -fstack-protector We removed this previously due to build failures in: commit 14ac764ec86452ca607403f314b0f8355d80290c Author: David Herrmann Date: Mon Sep 9 16:03:41 2013 +0200 build: remove -fstack-protector Reintroduce it but this time disable it if it's not supported. We use the CC-flags testing to prevent build-failures on gcc without libssp support. Cc: Giovanni Campagna Signed-off-by: David Herrmann Signed-off-by: Peter Hutterer --- diff --git a/configure.ac b/configure.ac index 40675ef..c32b06f 100644 --- a/configure.ac +++ b/configure.ac @@ -67,6 +67,7 @@ if test "x$GCC" = "xyes"; then -fdata-sections \ -fno-strict-aliasing \ -fdiagnostics-show-option \ + -fstack-protector \ -fno-common]) fi AC_SUBST([GCC_CFLAGS], $with_cflags)