diff options
author | Patrik Hagglund <patrik.h.hagglund@ericsson.com> | 2013-02-04 08:15:53 +0000 |
---|---|---|
committer | Patrik Hagglund <patrik.h.hagglund@ericsson.com> | 2013-02-04 08:15:53 +0000 |
commit | d91ae4d960aa6b22eab6e001f56493d0b5d0c452 (patch) | |
tree | f6d446b6fd7b78336a36b9d42fa3bb045e49eb2f /llvm/autoconf | |
parent | 7981ea8baae1c6d70822447f80104082caf103d0 (diff) | |
download | bcm5719-llvm-d91ae4d960aa6b22eab6e001f56493d0b5d0c452.tar.gz bcm5719-llvm-d91ae4d960aa6b22eab6e001f56493d0b5d0c452.zip |
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
Diffstat (limited to 'llvm/autoconf')
-rw-r--r-- | llvm/autoconf/configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/autoconf/configure.ac b/llvm/autoconf/configure.ac index 4ca4eb9042d..4c3af79edcd 100644 --- a/llvm/autoconf/configure.ac +++ b/llvm/autoconf/configure.ac @@ -59,6 +59,11 @@ if test ${srcdir} != "." ; then fi fi +dnl Default to empty (i.e. assigning the null string to) CFLAGS and CXXFLAGS, +dnl instead of the autoconf default (for example, '-g -O2' for CC=gcc). +${CFLAGS=} +${CXXFLAGS=} + dnl We need to check for the compiler up here to avoid anything else dnl starting with a different one. AC_PROG_CC(clang llvm-gcc gcc) |