From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 541C74196F4 for ; Wed, 12 May 2010 09:46:07 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Level: X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] autolearn=ham Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CPAH8e1LHuOh for ; Wed, 12 May 2010 09:45:55 -0700 (PDT) Received: from dmz-mailsec-scanner-3.mit.edu (DMZ-MAILSEC-SCANNER-3.MIT.EDU [18.9.25.14]) by olra.theworths.org (Postfix) with ESMTP id 89BA74196F0 for ; Wed, 12 May 2010 09:45:55 -0700 (PDT) X-AuditID: 1209190e-b7b82ae000005260-46-4beadb430f23 Received: from mailhub-auth-1.mit.edu (MAILHUB-AUTH-1.MIT.EDU [18.9.21.35]) by dmz-mailsec-scanner-3.mit.edu (Symantec Brightmail Gateway) with SMTP id 4E.7E.21088.34BDAEB4; Wed, 12 May 2010 12:45:55 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-1.mit.edu (8.13.8/8.9.2) with ESMTP id o4CGjsWP015975; Wed, 12 May 2010 12:45:54 -0400 Received: from PHANATIQUE.MIT.EDU (c-71-192-160-118.hsd1.nh.comcast.net [71.192.160.118]) (authenticated bits=0) (User authenticated as nelhage@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id o4CGjrrg019856 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Wed, 12 May 2010 12:45:54 -0400 (EDT) From: Nelson Elhage To: notmuch@notmuchmail.org Subject: [PATCH] configure: Respect LDFLAGS from the environment. Date: Wed, 12 May 2010 12:45:52 -0400 Message-Id: <1273682752-19140-1-git-send-email-nelhage@ksplice.com> X-Mailer: git-send-email 1.6.6.30.g1e6fd X-Brightmail-Tracker: AAAAAhQpM2IUKgqv Cc: Nelson Elhage X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 May 2010 16:46:07 -0000 The configure usage string documents that it respects LDFLAGS, but currently it doesn't do anything with the configure-time LDFLAGS value. --- configure | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/configure b/configure index c522ad8..90355e8 100755 --- 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 -- 1.6.6.30.g1e6fd