From 2728f5673fd99f0c634ffe5e72a2eee02526bc00 Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Mon, 6 Oct 2014 13:11:14 -0400 Subject: Use AX_PROG_CC_FOR_BUILD macro to identify compiler targeting the build host. (When cross-compiling, this is *not* the compiler used to build wireshark itself). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Macro ax_prog_cc_for_build.m4 retrieved from http://git.savannah.gnu.org/gitweb/?p=autoconf-archive.git Change-Id: I035059d9315e0081dcf1ffbafd9ce6d7ad46700c Reviewed-on: https://code.wireshark.org/review/4503 Petri-Dish: Alexis La Goutte Tested-by: Petri Dish Buildbot Reviewed-by: Eric Anderson Reviewed-by: João Valverde --- acinclude.m4 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'acinclude.m4') diff --git a/acinclude.m4 b/acinclude.m4 index b432d4cea2..81d385e043 100644 --- a/acinclude.m4 +++ b/acinclude.m4 @@ -1622,7 +1622,7 @@ if test "x$ac_supports_gcc_flags" = "xyes" ; then # with which we're building Wireshark, so add the flags # to the flags for that compiler as well. # - CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION" + AX_APPEND_FLAG([$GCC_OPTION], [WS_CFLAGS_FOR_BUILD]) fi ], [ @@ -1641,7 +1641,7 @@ if test "x$ac_supports_gcc_flags" = "xyes" ; then # with which we're building Wireshark, so add the flags # to the flags for that compiler as well. # - CFLAGS_FOR_BUILD="$CFLAGS_FOR_BUILD $GCC_OPTION" + AX_APPEND_FLAG([$GCC_OPTION], [WS_CFLAGS_FOR_BUILD]) fi fi ], -- cgit v1.2.3