BZ #50: Makefiles don't respect CPPFLAGS

Status fields:

creation_ts:2008-03-05 15:49
component:build system
version:default branch
rep_platform:All
op_sys:All
bug_status:RESOLVED
resolution:FIXED
reporter:twisti@complang.tuwien.ac.at
With changeset

http://mips.complang.tuwien.ac.at/hg/cacao/rev/285ff795b4ba

we set CPPFLAGS as AM_CPPFLAGS in Makefiles, but the Makefiles override them.  So when
now using

$ make CPPFLAGS=XXX

on the command line, all CPPFLAGS set during configure are lost.

The solution is to save the CPPFLAGS passed to configure to a different variable, use
CPPFLAGS during configure, set AM_CPPFLAGS to CPPFLAGS set during configure at the end
of configure (but without the flags passed to configure), restore CPPFLAGS and use:

AM_CPPFLAGS += ...

in Makefiles.

Comment #1 by zapster@complang.tuwien.ac.at on 2013-12-02 13:14:23

Fixed:
http://mips.complang.tuwien.ac.at/hg/cacao/rev/09ec74d145f797249b6f6160b35b25e3120dc1c6