Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id D206740D166 for ; Fri, 29 Oct 2010 16:17:26 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.991 X-Spam-Level: X-Spam-Status: No, score=-1.991 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, UPPERCASE_50_75=0.008] autolearn=no 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 P0J2ZIYB4uih for ; Fri, 29 Oct 2010 16:17:16 -0700 (PDT) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) by olra.theworths.org (Postfix) with ESMTP id B984040D167 for ; Fri, 29 Oct 2010 16:16:59 -0700 (PDT) Received: by mail-fx0-f53.google.com with SMTP id 6so3893367fxm.26 for ; Fri, 29 Oct 2010 16:16:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=KVJPGfp/AF2oNFnsglDFGk2U5pujj0KKpb3XtdLM19s=; b=fWlBENGnAxcITbvXUGuUMRZrPnylsnEde/bEc5PX66dWLBQEgE3gTL1yagIjGeE0QV V1ZkXPcWfaxvfNBe/nRimRB5qNzWzhxzE+XfRgFfAkGY+QUK7Zl8zy6uSMqkK0cBDqve 2xLDAGzS5+Iwpjur16pfXKQ6bFzFjpYSsUu8s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=kziV1QjQ88s/oIuBYeyeuUSQrMHqdZ6cja4tpmyJREg1x/7TzAxf0EiIjU9MX7ucyh GfC3dWT9ntNniwRrAomlLWDfquVsvzMcTfpocJPgPJlpVJDb13WoHrDu03D/yq88btao rJ6Hw7afK2WJRRQ4C8L0EgKkrAovq6cAT1DdU= Received: by 10.223.74.10 with SMTP id s10mr3225846faj.77.1288394219417; Fri, 29 Oct 2010 16:16:59 -0700 (PDT) Received: from localhost (a91-153-253-80.elisa-laajakaista.fi [91.153.253.80]) by mx.google.com with ESMTPS id d17sm1306792fav.5.2010.10.29.16.16.58 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 29 Oct 2010 16:16:58 -0700 (PDT) From: Felipe Contreras To: notmuch@notmuchmail.org Subject: [PATCH 2/2] build: only link to what we really use Date: Sat, 30 Oct 2010 02:16:47 +0300 Message-Id: <1288394207-10223-3-git-send-email-felipe.contreras@gmail.com> X-Mailer: git-send-email 1.7.3.2.2.g0dc5c In-Reply-To: <1288394207-10223-1-git-send-email-felipe.contreras@gmail.com> References: <1288394207-10223-1-git-send-email-felipe.contreras@gmail.com> 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: Fri, 29 Oct 2010 23:17:27 -0000 At least linux has the -Wl,--as-needed option. Signed-off-by: Felipe Contreras --- Makefile.local | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/Makefile.local b/Makefile.local index 9fed725..70c395a 100644 --- a/Makefile.local +++ b/Makefile.local @@ -33,7 +33,9 @@ FINAL_CFLAGS = -DNOTMUCH_VERSION=$(VERSION) $(CFLAGS) $(WARN_CFLAGS) $(CONFIGURE FINAL_CXXFLAGS = $(CXXFLAGS) $(WARN_CXXFLAGS) $(CONFIGURE_CXXFLAGS) $(extra_cflags) $(extra_cxxflags) FINAL_NOTMUCH_LDFLAGS = $(LDFLAGS) -Llib -lnotmuch $(GMIME_LDFLAGS) $(TALLOC_LDFLAGS) FINAL_NOTMUCH_LINKER = CC -ifneq ($(LINKER_RESOLVES_LIBRARY_DEPENDENCIES),1) +ifeq ($(LINKER_RESOLVES_LIBRARY_DEPENDENCIES),1) +FINAL_NOTMUCH_LDFLAGS += -Wl,--as-needed +else FINAL_NOTMUCH_LDFLAGS += $(CONFIGURE_LDFLAGS) FINAL_NOTMUCH_LINKER = CXX endif -- 1.7.3.2.2.g0dc5c