X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=configure;h=ff8baa5e52696686461d82d5cf9728e1c5448a0b;hb=943f415f81207ea00bf1efe8c2c1cbf13a094a56;hp=488b3bd7965a57471c1fa187ffe7c4eb659a2e10;hpb=c7f971e8c02524ee2435406f0c14791b75c10e20;p=obsolete%2Fnotmuch-old diff --git a/configure b/configure index 488b3bd7..ff8baa5e 100755 --- a/configure +++ b/configure @@ -2,6 +2,8 @@ CC=${CC:-gcc} CXX=${CXX:-g++} +CFLAGS=${CFLAGS:--O2} +CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)} # defaults PREFIX=/usr/local @@ -195,6 +197,12 @@ CC = ${CC} # The C++ compiler to use CXX = ${CXX} +# Default FLAGS for C compiler (can be overridden by user such as "make CFLAGS=-g") +CFLAGS = ${CFLAGS} + +# Default FLAGS for C++ compiler (can be overridden by user such as "make CXXFLAGS=-g") +CXXFLAGS = ${CXXFLAGS} + # The prefix to which notmuch should be installed prefix = ${PREFIX}