]> git.notmuchmail.org Git - notmuch/commitdiff
configure: Respect LDFLAGS from the environment.
authorTomas Carnecky <tom@dbservice.com>
Fri, 30 Apr 2010 18:52:40 +0000 (20:52 +0200)
committerCarl Worth <cworth@cworth.org>
Fri, 4 Jun 2010 01:16:11 +0000 (18:16 -0700)
The configure usage string documents that it respects LDFLAGS, but
currently it doesn't do anything with the configure-time LDFLAGS
value.

Signed-off-by: Tomas Carnecky <tom@dbservice.com>
[Tomas and Nelson sent almost identical patches which I've merged
together here.]

configure

index c522ad8524becfdb28ff73aefefbca6bb08c0411..fd189093749e72e0c372f9c6f2ff27f8bb0b303b 100755 (executable)
--- a/configure
+++ b/configure
@@ -6,6 +6,7 @@ CC=${CC:-gcc}
 CXX=${CXX:-g++}
 CFLAGS=${CFLAGS:--O2}
 CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)}
+LDFLAGS=${LDFLAGS:-}
 XAPIAN_CONFIG=${XAPIAN_CONFIG:-xapian-config-1.1 xapian-config}
 
 # We don't allow the EMACS or GZIP Makefile variables inherit values
@@ -389,6 +390,9 @@ CFLAGS = ${CFLAGS}
 # Default FLAGS for C++ compiler (can be overridden by user such as "make CXXFLAGS=-g")
 CXXFLAGS = ${CXXFLAGS}
 
+# Default FLAGS for the linker (can be overridden by user such as "make LDFLAGS=-znow")
+LDFLAGS = ${LDFLAGS}
+
 # Flags to enable warnings when using the C++ compiler
 WARN_CXXFLAGS=-Wall -Wextra -Wwrite-strings -Wswitch-enum