diff options
author | Nick Schermer <nick@xfce.org> | 2011-03-07 20:58:15 +0100 |
---|---|---|
committer | Nick Schermer <nick@xfce.org> | 2011-03-07 20:58:15 +0100 |
commit | 1d71f62e24c95963f84b4d243fa8c07accd87af5 (patch) | |
tree | d0daf51b3d9a590c4d2c5efe13bf5209f59cdf59 | |
parent | 9516648eab1302bb7003c2298bb72c7b777b9013 (diff) | |
download | xfce4-dev-tools-1d71f62e24c95963f84b4d243fa8c07accd87af5.tar.gz |
Only use -fstack-protector on Linux systems.
The FreeBSD bot has some problems with this flag. Disable
it on non-linux systems, since it's not that important.
-rw-r--r-- | m4macros/xdt-features.m4 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/m4macros/xdt-features.m4 b/m4macros/xdt-features.m4 index 063c188..b09a504 100644 --- a/m4macros/xdt-features.m4 +++ b/m4macros/xdt-features.m4 @@ -78,10 +78,13 @@ AC_HELP_STRING([--disable-debug], [Include no debugging support]), -Wmissing-noreturn -Wshadow -Wpointer-arith \ -Wcast-align -Wformat-security \ -Winit-self -Wmissing-include-dirs -Wundef \ - -Wmissing-format-attribute -Wnested-externs \ - -fstack-protector" + -Wmissing-format-attribute -Wnested-externs" CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2" - + + if test x`uname` = x"Linux"; then + xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -fstack-protector" + fi + if test x"$enable_debug" = x"full"; then AC_DEFINE([DEBUG_TRACE], [1], [Define for tracing support]) xdt_cv_additional_CFLAGS="$xdt_cv_additional_CFLAGS -O0 -g3 -Werror" |