|
From: | Rik |
Subject: | Re: XTRA_CFLAGS |
Date: | Sun, 7 Feb 2016 07:09:17 -0800 |
On 02/06/2016 11:25 PM,
address@hidden wrote:
There is one other set of flags, CPPFLAGS, used by the C pre-processor. It may be sneaking in there. The rule in question is from libinterp/module.mk: ## Rule to build a DEF file from a .cc file ## See also module.mk files for overrides when speciall CPPFLAGS are needed. ## FIXME: Shouldn't the build stop if CPP fails here? Yes (10/31/2013) %.df: %.cc $(GENERATED_MAKE_BUILTINS_INCS) $(AM_V_GEN)rm -f address@hidden address@hidden $@ && \ $(CXXCPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(libinterp_liboctinterp_la_CPPFLAGS) $(LLVM_CPPFLAGS) $(CPPFLAGS) \ $(libinterp_liboctinterp_la_CXXFLAGS) $(CXXFLAGS) \ -DMAKE_BUILTINS $< > address@hidden && \ $(srcdir)/libinterp/mkdefs $(srcdir)/libinterp $< < address@hidden > address@hidden && \ rm -f address@hidden && \ mv address@hidden $@ As you can see, it runs the C++ pre-processor (g++ -E), to just process macros and includes. I would check your Makefile to see what some of those variables in the rule expand out to. Use grep '^CPPFLAGS', grep '^CXXFLAGS', etc. --Rik |
[Prev in Thread] | Current Thread | [Next in Thread] |