Module: xenomai-3
Branch: next
Commit: cd64c4508f82d8dc3ba7cbcc6127a243b166dde6
URL:    
http://git.xenomai.org/?p=xenomai-3.git;a=commit;h=cd64c4508f82d8dc3ba7cbcc6127a243b166dde6

Author: Philippe Gerum <r...@xenomai.org>
Date:   Fri Mar  3 16:40:03 2017 +0100

build: raise _FORTIFY_SOURCE level

Turning on --enable-fortify now sets level 2.

At this chance, we cope with compilers pre-setting _FORTIFY_SOURCE.

---

 configure.ac |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 83bc809..4792e46 100644
--- a/configure.ac
+++ b/configure.ac
@@ -649,7 +649,7 @@ dnl Internal CFLAGS and LDFLAGS, may be enhanced per-arch 
below
 XENO_USER_CFLAGS="$XENO_USER_APP_CFLAGS -pipe -fstrict-aliasing \
 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-long-long 
-Wno-unused-parameter -Werror"
 if test x$want_fortify = xyes -a x$debug_mode != xfull; then
-   XENO_USER_CFLAGS="$XENO_USER_CFLAGS -D_FORTIFY_SOURCE=1"
+   XENO_USER_CFLAGS="$XENO_USER_CFLAGS -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
 fi
 XENO_USER_LDADD="$XENO_USER_APP_LDFLAGS"
 


_______________________________________________
Xenomai-git mailing list
Xenomai-git@xenomai.org
https://xenomai.org/mailman/listinfo/xenomai-git

Reply via email to