diff options
author | David Bremner <bremner@debian.org> | 2013-05-25 22:28:12 -0300 |
---|---|---|
committer | David Bremner <bremner@debian.org> | 2013-06-02 20:45:56 -0300 |
commit | 51b14fb3c3a3cfdfa6b29d8309aaa6cbe82cedda (patch) | |
tree | 7d626fd7ad130218c69902e34c4b412b5d4b1fb3 /configure | |
parent | a226183b8dd4c10551065015c88fe1c0055fe34f (diff) |
configure: grab CPPFLAGS from the environment.
This is needed in particular for hardening flags.
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -43,6 +43,7 @@ fi CC=${CC:-gcc} CXX=${CXX:-g++} CFLAGS=${CFLAGS:--O2} +CPPFLAGS=${CPPFLAGS:-} CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)} LDFLAGS=${LDFLAGS:-} XAPIAN_CONFIG=${XAPIAN_CONFIG:-xapian-config} @@ -91,6 +92,7 @@ First, some common variables can specified via environment variables: CC The C compiler to use CFLAGS Flags to pass to the C compiler + CPPFLAGS Flags to pass to the C preprocessor CXX The C++ compiler to use CXXFLAGS Flags to pass to the C compiler LDFLAGS Flags to pass when linking @@ -615,6 +617,9 @@ EMACS = emacs --quick # Default FLAGS for C compiler (can be overridden by user such as "make CFLAGS=-g") CFLAGS = ${CFLAGS} +# Default FLAGS for C preprocessor (can be overridden by user such as "make CPPFLAGS=-I/usr/local/include") +CPPFLAGS = ${CPPFLAGS} + # Default FLAGS for C++ compiler (can be overridden by user such as "make CXXFLAGS=-g") CXXFLAGS = ${CXXFLAGS} |