summaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorDaniel Wagner <daniel.wagner@bmw-carit.de>2012-11-29 08:38:14 (GMT)
committerPatrik Flykt <patrik.flykt@linux.intel.com>2012-11-29 09:22:51 (GMT)
commit9d043a0a4c742f5a369d37062c5b70013656a8f4 (patch)
tree2c3cb525bbe1abfb19e179b3e28687024ecaa3ad /configure.ac
parent5b47b6c11e6c6bb32dd2342abe5eea96c1e79127 (diff)
downloadconnman-9d043a0a4c742f5a369d37062c5b70013656a8f4.zip
connman-9d043a0a4c742f5a369d37062c5b70013656a8f4.tar.gz
connman-9d043a0a4c742f5a369d37062c5b70013656a8f4.tar.bz2
build: Disable FORTIFY_SOURCE when optimization is disabled
The last fix was wrong. We need to use U_FORTIFY_SOURCE flag for this.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac6
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 70844ff..76c1a18 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,6 +12,8 @@ AC_PREFIX_DEFAULT(/usr/local)
PKG_PROG_PKG_CONFIG
+COMPILER_FLAGS
+
AC_SUBST(abs_top_srcdir)
AC_SUBST(abs_top_builddir)
@@ -32,12 +34,10 @@ AC_PROG_LIBTOOL
AC_ARG_ENABLE(optimization, AC_HELP_STRING([--disable-optimization],
[disable code optimization through compiler]), [
if (test "${enableval}" = "no"); then
- CFLAGS="$CFLAGS -O0"
+ CFLAGS="$CFLAGS -O0 -U_FORTIFY_SOURCE"
fi
])
-COMPILER_FLAGS
-
GTK_DOC_CHECK
AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],