mirror of
https://gitlab.freedesktop.org/libevdev/libevdev.git
synced 2025-12-21 22:30:07 +01:00
Reintroduce -fstack-protector
We removed this previously due to build failures in:
commit 14ac764ec8
Author: David Herrmann <dh.herrmann@gmail.com>
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 <gcampagn@redhat.com>
Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
92b2b1ccd5
commit
f5e65ea3ce
1 changed files with 1 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue