diff options
author | Eric Anderson <andersoe@cs.cmu.edu> | 2014-10-06 13:11:14 -0400 |
---|---|---|
committer | João Valverde <j@v6e.pt> | 2016-03-10 01:54:27 +0000 |
commit | 2728f5673fd99f0c634ffe5e72a2eee02526bc00 (patch) | |
tree | 7fd6a057547253ec3de27e4b174fac189e019496 /tools | |
parent | 99db1c5c982360c5f8307f41eccc6417f83e6a84 (diff) |
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 'tools')
-rw-r--r-- | tools/lemon/Makefile.am | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/tools/lemon/Makefile.am b/tools/lemon/Makefile.am index 0cafe51167..44ab0af4cd 100644 --- a/tools/lemon/Makefile.am +++ b/tools/lemon/Makefile.am @@ -23,25 +23,21 @@ # is an archive library, any executable linking against libwireshark will # also need to link against libftypes. +AUTOMAKE_OPTIONS = -Wno-gnu + CC = $(CC_FOR_BUILD) +CPPFLAGS = $(CPPFLAGS_FOR_BUILD) +CFLAGS = $(CFLAGS_FOR_BUILD) +LDFLAGS = $(LDFLAGS_FOR_BUILD) +LIBS = if HAVE_WARNINGS_AS_ERRORS -CFLAGS_FOR_BUILD += -Werror +WERROR = -Werror endif -LIBS = - noinst_PROGRAMS = lemon -lemon_SOURCES = lemon.c - -lemon_CPPFLAGS = - -lemon_CFLAGS = $(CFLAGS_FOR_BUILD) - -lemon_LDFLAGS = $(LDFLAGS_FOR_BUILD) - -lemon_LDADD = +lemon_CFLAGS = $(WERROR) $(WS_CFLAGS_FOR_BUILD) CLEANFILES = \ *~ |