summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorEric Anderson <andersoe@cs.cmu.edu>2014-10-06 13:11:14 -0400
committerJoão Valverde <j@v6e.pt>2016-03-10 01:54:27 +0000
commit2728f5673fd99f0c634ffe5e72a2eee02526bc00 (patch)
tree7fd6a057547253ec3de27e4b174fac189e019496 /acinclude.m4
parent99db1c5c982360c5f8307f41eccc6417f83e6a84 (diff)
downloadwireshark-2728f5673fd99f0c634ffe5e72a2eee02526bc00.tar.gz
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). 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 <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Eric Anderson <andersoe@cs.cmu.edu> Reviewed-by: João Valverde <j@v6e.pt>
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m44
1 files changed, 2 insertions, 2 deletions
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
],