summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 919214f)
raw | patch | inline | side by side (parent: 919214f)
author | Sebastian Harl <sh@tokkee.org> | |
Mon, 24 Feb 2014 01:43:58 +0000 (17:43 -0800) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 24 Feb 2014 01:43:58 +0000 (17:43 -0800) |
Most importantly, don't assign them to CFLAGS which might be overwritten when
running make, thus leaving out the flags which were originally requested to be
used.
running make, thus leaving out the flags which were originally requested to be
used.
configure.ac | patch | blob | history |
diff --git a/configure.ac b/configure.ac
index de18e156b7f891616c76d24661314cba8ac70e7f..e64e094ccbbfc20070a147acaa0a94528f9919ce 100644 (file)
--- a/configure.ac
+++ b/configure.ac
return $ret
}
+STRICT_CFLAGS=""
+
m4_divert_once([HELP_ENABLE], [
Build options:])
AC_MSG_CHECKING([whether $CC accepts $flag])
if test_cc_flags $flag; then
- CFLAGS="$CFLAGS $flag"
+ STRICT_CFLAGS="$STRICT_CFLAGS $flag"
AC_MSG_RESULT([yes])
else
AC_MSG_RESULT([no])
AC_MSG_CHECKING([whether $CC accepts $flag])
if test_cc_flags $flag; then
- CFLAGS="$CFLAGS $flag"
+ STRICT_CFLAGS="$STRICT_CFLAGS $flag"
hardening=$(($hardening + 1))
AC_MSG_RESULT([yes])
else
[enable_strict_checks="$enableval"],
[enable_strict_checks="yes"])
-STRICT_CFLAGS=""
for flag in -Wall -Werror; do
AC_MSG_CHECKING([whether $CC accepts $flag])