From: David Herrmann Date: Mon, 9 Sep 2013 14:03:41 +0000 (+0200) Subject: build: remove -fstack-protector X-Git-Tag: libevdev-0.4~21 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=14ac764ec86452ca607403f314b0f8355d80290c;p=platform%2Fupstream%2Flibevdev.git build: remove -fstack-protector If gcc is built without libssp support, it loudly fails linking due to missing __stack_chk_*() helpers. Unfortunately, gcc isn't smart enough to disable it automatically. systemd recently got a CC_CHECK_FLAG_APPEND helper to work around such issues: http://cgit.freedesktop.org/systemd/systemd/tree/m4/attributes.m4 I didn't want to add it now, so let's just drop -fstack-protector. If we want it, we can try adding it later again. This partially reverts: commit 43752ec17d09b132621a86f5cbc546ca6ab9e977 Author: David Herrmann Date: Sun Sep 1 17:45:04 2013 +0200 Add some gcc/ld optimizations and magic All other gcc/ld options are kept. Reported-by: Giovanni Campagna Signed-off-by: David Herrmann Signed-off-by: Peter Hutterer --- diff --git a/configure.ac b/configure.ac index aef07f9..d9f9dc9 100644 --- a/configure.ac +++ b/configure.ac @@ -47,7 +47,7 @@ AM_CONDITIONAL(BUILD_TESTS, [test "x$HAVE_CHECK" = "xyes"]) if test "x$GCC" = "xyes"; then - GCC_CFLAGS="-Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -pipe -fno-common -fno-strict-aliasing -ffunction-sections -fdata-sections -fstack-protector -fno-strict-aliasing -fdiagnostics-show-option -fno-common" + GCC_CFLAGS="-Wall -Wextra -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes -fvisibility=hidden -pipe -fno-common -fno-strict-aliasing -ffunction-sections -fdata-sections -fno-strict-aliasing -fdiagnostics-show-option -fno-common" fi AC_SUBST(GCC_CFLAGS)