]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
remove default compiler flags, and check for them individually
authorJelte Jansen <jelte@NLnetLabs.nl>
Thu, 22 May 2008 08:51:38 +0000 (08:51 +0000)
committerJelte Jansen <jelte@NLnetLabs.nl>
Thu, 22 May 2008 08:51:38 +0000 (08:51 +0000)
-g and -O2 seem to be added bij autoreconf by default

configure.ac

index da72f2c44293f414d044438560565d96cafc155a..428fd3da5ae1f53efb9785169922744d9b172d8b 100644 (file)
@@ -11,8 +11,6 @@ PACKAGE_VERSION="$PACKAGE_VERSION"
 
 OURCPPFLAGS=''
 CPPFLAGS=${CPPFLAGS:-${OURCPPFLAGS}}
-OURCFLAGS='-g -Wall -W -Wwrite-strings'
-CFLAGS=${CFLAGS:-${OURCFLAGS}}
 
 AC_AIX
 # Checks for programs.
@@ -101,11 +99,13 @@ fi
 fi
 ])
 
+
 # Checks for typedefs, structures, and compiler characteristics.
 AC_C_CONST
 AC_LANG_C
-CHECK_COMPILER_FLAG(g, [CFLAGS="$CFLAGS -g"])
-CHECK_COMPILER_FLAG(O2, [CFLAGS="$CFLAGS -O2"])
+CHECK_COMPILER_FLAG(Wall, [CFLAGS="$CFLAGS -Wall"])
+CHECK_COMPILER_FLAG(W, [CFLAGS="$CFLAGS -w"])
+CHECK_COMPILER_FLAG(Wwrite-strings, [CFLAGS="$CFLAGS -Wwrite-strings"])
 
 AC_CHECK_HEADERS([getopt.h time.h],,, [AC_INCLUDES_DEFAULT])