[PATCH v4 01/18] build: No FORTIFY flags when building without optimization

Daniel Wagner wagi at monom.org
Wed Nov 14 08:26:00 PST 2012


From: Daniel Wagner <daniel.wagner at bmw-carit.de>

When building with --disable-optimiziation we need to make
sure the compiler flags do not include -O0 and FORTITFY when compiling
the resolv.h header file.
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 286b71c..d9dba39 100644
--- a/configure.ac
+++ b/configure.ac
@@ -12,8 +12,6 @@ AC_PREFIX_DEFAULT(/usr/local)
 
 PKG_PROG_PKG_CONFIG
 
-COMPILER_FLAGS
-
 AC_SUBST(abs_top_srcdir)
 AC_SUBST(abs_top_builddir)
 
@@ -38,6 +36,8 @@ AC_ARG_ENABLE(optimization, AC_HELP_STRING([--disable-optimization],
 	fi
 ])
 
+COMPILER_FLAGS
+
 GTK_DOC_CHECK
 
 AC_ARG_ENABLE(debug, AC_HELP_STRING([--enable-debug],
-- 
1.8.0.rc0




More information about the connman mailing list