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 /acinclude.m4 | |
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
Diffstat (limited to 'acinclude.m4')
-rw-r--r-- | acinclude.m4 | 10 |
1 files changed, 10 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. |