mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 09:24:54 +01:00
configure: grab CPPFLAGS from the environment.
This is needed in particular for hardening flags.
This commit is contained in:
parent
a226183b8d
commit
51b14fb3c3
1 changed files with 5 additions and 0 deletions
5
configure
vendored
5
configure
vendored
|
@ -43,6 +43,7 @@ fi
|
||||||
CC=${CC:-gcc}
|
CC=${CC:-gcc}
|
||||||
CXX=${CXX:-g++}
|
CXX=${CXX:-g++}
|
||||||
CFLAGS=${CFLAGS:--O2}
|
CFLAGS=${CFLAGS:--O2}
|
||||||
|
CPPFLAGS=${CPPFLAGS:-}
|
||||||
CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)}
|
CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)}
|
||||||
LDFLAGS=${LDFLAGS:-}
|
LDFLAGS=${LDFLAGS:-}
|
||||||
XAPIAN_CONFIG=${XAPIAN_CONFIG:-xapian-config}
|
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
|
CC The C compiler to use
|
||||||
CFLAGS Flags to pass to the C compiler
|
CFLAGS Flags to pass to the C compiler
|
||||||
|
CPPFLAGS Flags to pass to the C preprocessor
|
||||||
CXX The C++ compiler to use
|
CXX The C++ compiler to use
|
||||||
CXXFLAGS Flags to pass to the C compiler
|
CXXFLAGS Flags to pass to the C compiler
|
||||||
LDFLAGS Flags to pass when linking
|
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")
|
# Default FLAGS for C compiler (can be overridden by user such as "make CFLAGS=-g")
|
||||||
CFLAGS = ${CFLAGS}
|
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")
|
# Default FLAGS for C++ compiler (can be overridden by user such as "make CXXFLAGS=-g")
|
||||||
CXXFLAGS = ${CXXFLAGS}
|
CXXFLAGS = ${CXXFLAGS}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue