Pass CPPFLAGS/CFLAGS/CXXFLAGS from the environment of configure to
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>
Mon, 4 Feb 2013 08:15:53 +0000 (08:15 +0000)
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>
Mon, 4 Feb 2013 08:15:53 +0000 (08:15 +0000)
commitd91ae4d960aa6b22eab6e001f56493d0b5d0c452
treef6d446b6fd7b78336a36b9d42fa3bb045e49eb2f
parent7981ea8baae1c6d70822447f80104082caf103d0
Pass CPPFLAGS/CFLAGS/CXXFLAGS from the environment of configure to
Makefile.config.

This is implied at the bottom of the help text of configure (besides
CC/CXX/LDFLAGS, already passed to Makefile.config).

For backward compatibility, the values of CFLAGS and CXXFLAGS defaults
to empty, overriding the default values provided by autoconf (for
example, '-g -O2' when CC=gcc').

$(CPP) is not used by our makefiles. Therefore, the value of CPP is
not passed to Makefile.config, despite beeing mentioned by 'configure
--help'.

llvm-svn: 174313
llvm/Makefile.config.in
llvm/autoconf/configure.ac
llvm/configure
llvm/docs/MakefileGuide.rst