diff options
author | Guy Harris <guy@alum.mit.edu> | 2013-02-04 22:23:19 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2013-02-04 22:23:19 +0000 |
commit | 1d3e62c025c2c70f9fb6f65f1159cdc061c269f7 (patch) | |
tree | b66e6c938965b261a348910bc9974a0463e941c1 | |
parent | f3ee20ac881b6e7fee5ff2002818d5de03249a5f (diff) | |
download | wireshark-1d3e62c025c2c70f9fb6f65f1159cdc061c269f7.tar.gz wireshark-1d3e62c025c2c70f9fb6f65f1159cdc061c269f7.tar.bz2 wireshark-1d3e62c025c2c70f9fb6f65f1159cdc061c269f7.zip |
Add the warning flags to CFLAGS_FOR_BUILD, so any build tools we build
are built with warnings.
Also add compiler-specific flags (in this case, just the flags to enable
ANSI C compilation) to CFLAGS_FOR_BUILD.
svn path=/trunk/; revision=47479
-rw-r--r-- | acinclude.m4 | 10 | ||||
-rw-r--r-- | configure.ac | 2 |
2 files changed, 12 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4 index c1d1704f34..c6b8e6f530 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1657,6 +1657,11 @@ if test "x$ac_supports_gcc_flags" = "xyes" ; then # the saved value plus just the new option. # CFLAGS="$CFLAGS_saved $GCC_OPTION" + # + # Add it to the flags we use when building + # build tools. + # + CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION" if test "$2" != C ; then # # Add it to the C++ flags as well. @@ -1675,6 +1680,11 @@ if test "x$ac_supports_gcc_flags" = "xyes" ; then # the saved value plus just the new option. # CFLAGS="$CFLAGS_saved $GCC_OPTION" + # + # Add it to the flags we use when building + # build tools. + # + CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION" if test "$2" != C ; then # # Add it to the C++ flags as well. diff --git a/configure.ac b/configure.ac index 2c144357a9..05395ee311 100644 --- a/configure.ac +++ b/configure.ac @@ -177,6 +177,7 @@ then CC_FOR_BUILD=$CC fi AC_SUBST(CC_FOR_BUILD) +AC_SUBST(CFLAGS_FOR_BUILD) # Check for doxygen AC_PATH_PROG(DOXYGEN, doxygen) @@ -639,6 +640,7 @@ else # documentation I can find online. # CFLAGS="-Ae +O2 $CFLAGS" + CFLAGS_FOR_BUILD="-Ae +O2 $CFLAGS" CXXFLAGS="+O2 $CFLAGS" AC_MSG_RESULT(HP ANSI C compiler - added -Ae +O2) ;; |