]> git.notmuchmail.org Git - notmuch/commit
configure: Support the capturing of CFLAGS and CXXFLAGS at configure time.
authorCarl Worth <cworth@cworth.org>
Fri, 4 Dec 2009 23:20:12 +0000 (15:20 -0800)
committerCarl Worth <cworth@cworth.org>
Fri, 4 Dec 2009 23:20:12 +0000 (15:20 -0800)
commit943f415f81207ea00bf1efe8c2c1cbf13a094a56
tree3c1c6e2c975d555e8088885c97297983bd13687b
parentc7f971e8c02524ee2435406f0c14791b75c10e20
configure: Support the capturing of CFLAGS and CXXFLAGS at configure time.

These variables can now be set via configure time via environment
variables like so:

CFLAGS=-g ./configure

and subsequent builds will remember these values. The values can
still be overridden at compile time by passing make variables:

      make CFLAGS=-O2

The CXXFLAGS variable is optional. If unset at either configure
time or at compile time, it will inherit its value from the
CFLAGS variable. (Though if explicitly set at configure time
it must be explicitly overriden at compile time---just overriding
CFLAGS will not override CXXFLAGS as well.)
Makefile
configure