aboutsummaryrefslogtreecommitdiff
path: root/Makefile.config.in
diff options
context:
space:
mode:
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>2013-02-04 08:15:53 +0000
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>2013-02-04 08:15:53 +0000
commit6c440fcea52e27b3befcf2ad5f7dcc58a15a2e58 (patch)
tree0c9fb20caea3bdc811604281d25d7bd76a075617 /Makefile.config.in
parent9c02a276049cbd1d1511a88ebc7a22bb33658237 (diff)
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'. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174313 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile.config.in')
-rw-r--r--Makefile.config.in11
1 files changed, 10 insertions, 1 deletions
diff --git a/Makefile.config.in b/Makefile.config.in
index c751a0176d..d3b57e9f10 100644
--- a/Makefile.config.in
+++ b/Makefile.config.in
@@ -156,8 +156,17 @@ CXX = @CXX@
# Path to the CC binary, which use used by testcases for native builds.
CC := @CC@
+# C/C++ preprocessor flags.
+CPPFLAGS += @CPPFLAGS@
+
+# C compiler flags.
+CFLAGS += @CFLAGS@
+
+# C++ compiler flags.
+CXXFLAGS += @CXXFLAGS@
+
# Linker flags.
-LDFLAGS+=@LDFLAGS@
+LDFLAGS += @LDFLAGS@
# Path to the library archiver program.
AR_PATH = @AR@