[PATCH] configure: Respect LDFLAGS from the environment.
authorNelson Elhage <nelhage@ksplice.com>
Wed, 12 May 2010 16:45:52 +0000 (12:45 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:02 +0000 (09:37 -0800)
19/6627b2f3f8b25ab3be177b1dd314304adbcab8 [new file with mode: 0644]

diff --git a/19/6627b2f3f8b25ab3be177b1dd314304adbcab8 b/19/6627b2f3f8b25ab3be177b1dd314304adbcab8
new file mode 100644 (file)
index 0000000..57f8029
--- /dev/null
@@ -0,0 +1,87 @@
+Return-Path: <nelhage@mit.edu>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 541C74196F4\r
+       for <notmuch@notmuchmail.org>; Wed, 12 May 2010 09:46:07 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.9\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
+       tests=[BAYES_00=-1.9] autolearn=ham\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id CPAH8e1LHuOh for <notmuch@notmuchmail.org>;\r
+       Wed, 12 May 2010 09:45:55 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU\r
+       [18.9.25.14])\r
+       by olra.theworths.org (Postfix) with ESMTP id 89BA74196F0\r
+       for <notmuch@notmuchmail.org>; Wed, 12 May 2010 09:45:55 -0700 (PDT)\r
+X-AuditID: 1209190e-b7b82ae000005260-46-4beadb430f23\r
+Received: from mailhub-auth-1.mit.edu (MAILHUB-AUTH-1.MIT.EDU [18.9.21.35])\r
+       by dmz-mailsec-scanner-3.mit.edu (Symantec Brightmail Gateway) with\r
+       SMTP id 4E.7E.21088.34BDAEB4; Wed, 12 May 2010 12:45:55 -0400 (EDT)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+       by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id o4CGjsWP015975; \r
+       Wed, 12 May 2010 12:45:54 -0400\r
+Received: from PHANATIQUE.MIT.EDU (c-71-192-160-118.hsd1.nh.comcast.net\r
+       [71.192.160.118]) (authenticated bits=0)\r
+       (User authenticated as nelhage@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id o4CGjrrg019856\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT);\r
+       Wed, 12 May 2010 12:45:54 -0400 (EDT)\r
+From: Nelson Elhage <nelhage@ksplice.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] configure: Respect LDFLAGS from the environment.\r
+Date: Wed, 12 May 2010 12:45:52 -0400\r
+Message-Id: <1273682752-19140-1-git-send-email-nelhage@ksplice.com>\r
+X-Mailer: git-send-email 1.6.6.30.g1e6fd\r
+X-Brightmail-Tracker: AAAAAhQpM2IUKgqv\r
+Cc: Nelson Elhage <nelhage@ksplice.com>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 12 May 2010 16:46:07 -0000\r
+\r
+The configure usage string documents that it respects LDFLAGS, but\r
+currently it doesn't do anything with the configure-time LDFLAGS\r
+value.\r
+---\r
+ configure |    4 ++++\r
+ 1 files changed, 4 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/configure b/configure\r
+index c522ad8..90355e8 100755\r
+--- a/configure\r
++++ b/configure\r
+@@ -6,6 +6,7 @@ CC=${CC:-gcc}\r
+ CXX=${CXX:-g++}\r
+ CFLAGS=${CFLAGS:--O2}\r
+ CXXFLAGS=${CXXFLAGS:-\$(CFLAGS)}\r
++LDFLAGS=${LDFLAGS-}\r
+ XAPIAN_CONFIG=${XAPIAN_CONFIG:-xapian-config-1.1 xapian-config}\r
\r
+ # We don't allow the EMACS or GZIP Makefile variables inherit values\r
+@@ -389,6 +390,9 @@ CFLAGS = ${CFLAGS}\r
+ # Default FLAGS for C++ compiler (can be overridden by user such as "make CXXFLAGS=-g")\r
+ CXXFLAGS = ${CXXFLAGS}\r
\r
++# Default FLAGS for the linker (can be overridden by user such as "make LDFLAGS=-znow")\r
++LDFLAGS = ${LDFLAGS}\r
++\r
+ # Flags to enable warnings when using the C++ compiler\r
+ WARN_CXXFLAGS=-Wall -Wextra -Wwrite-strings -Wswitch-enum\r
\r
+-- \r
+1.6.6.30.g1e6fd\r
+\r