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 7E29041733B for ; Sun, 11 Apr 2010 16:45:06 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 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] 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 Sd-izVQCil3y for ; Sun, 11 Apr 2010 16:45:05 -0700 (PDT) Received: from mail-qy0-f191.google.com (mail-qy0-f191.google.com [209.85.221.191]) by olra.theworths.org (Postfix) with ESMTP id 11BD641733A for ; Sun, 11 Apr 2010 16:45:05 -0700 (PDT) Received: by qyk29 with SMTP id 29so5262228qyk.2 for ; Sun, 11 Apr 2010 16:45:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:x-mailer:in-reply-to:references; bh=kCLRfqM4KZefupRpLKqWQRaQh+9Zfe46md9G4otu3H8=; b=Wk54PPA2BDSjwrgXamCIeT/BAmvJ7NxyCwKKaH6H+vSv6wf7JWoQETMzqeAkBcmEDS XHNRh6Bnqzw9874br3wdv6A0uoJXzMBO2hclXvkQWswxYxopee9I9nZx2kUuUNamCLwn yotOtmByixHQ1QCZsNsWQk29y24PxEJoA7JYo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:x-mailer:in-reply-to:references; b=Ew4vLampJakBVoz5KjRBJkD+s1r1YeR6BEeygTOjb2iIi9EZ/cJmxd3oMffU0bj2x/ c3VB0rwX+yN7ufESkTC0hKYcCgCJN0BO7TIVU+C9YvRjmiJYauiqaZpmVTA6gJlh7/0n sux2bhB8QGYH1B5xIzYWzpo0woE1BElEmoMRU= Received: by 10.224.123.18 with SMTP id n18mr1153146qar.244.1271029504515; Sun, 11 Apr 2010 16:45:04 -0700 (PDT) Received: from localhost.localdomain (vpm120.wireless-resnet.upenn.edu [165.123.236.140]) by mx.google.com with ESMTPS id 8sm7425346qwj.50.2010.04.11.16.45.03 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 11 Apr 2010 16:45:04 -0700 (PDT) From: Aaron Ecay To: notmuch@notmuchmail.org Subject: [PATCH 3/4] Add infrastructure for building shared library on OS X. Date: Sun, 11 Apr 2010 19:44:53 -0400 Message-Id: <1271029494-89014-3-git-send-email-aaronecay@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <4bc25ea0.86c3f10a.45a3.ffff80d3@mx.google.com> References: <4bc25ea0.86c3f10a.45a3.ffff80d3@mx.google.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: Sun, 11 Apr 2010 23:45:06 -0000 This patch adds a configure check for OS X (actually Darwin), and sets up the Makefiles to build a proper shared library on that platform. Signed-off-by: Aaron Ecay --- Makefile | 2 +- Makefile.local | 2 +- configure | 13 +++++++++++++ lib/Makefile.local | 16 ++++++++++++++-- 4 files changed, 29 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index faaaec6..86e08fa 100644 --- a/Makefile +++ b/Makefile @@ -18,4 +18,4 @@ extra_cxxflags := # Finally, include all of the Makefile.local fragments where all the # real work is done. -include $(subdirs:%=%/Makefile.local) Makefile.local +include Makefile.config $(subdirs:%=%/Makefile.local) Makefile.local diff --git a/Makefile.local b/Makefile.local index c04044c..99d5b64 100644 --- a/Makefile.local +++ b/Makefile.local @@ -213,7 +213,7 @@ notmuch_client_modules = $(notmuch_client_srcs:.c=.o) notmuch: $(notmuch_client_modules) lib/libnotmuch.a $(call quiet,CXX $(CFLAGS)) $^ $(FINAL_LIBNOTMUCH_LDFLAGS) -o $@ -notmuch-shared: $(notmuch_client_modules) lib/libnotmuch.so +notmuch-shared: $(notmuch_client_modules) lib/$(LINKER_NAME) $(call quiet,CXX $(CFLAGS)) $(notmuch_client_modules) $(FINAL_NOTMUCH_LDFLAGS) -o $@ notmuch.1.gz: notmuch.1 diff --git a/configure b/configure index 5af7852..da45572 100755 --- a/configure +++ b/configure @@ -234,6 +234,15 @@ else have_emacs=0 fi +printf "Checking for Mac OS X (for shared library)... " +if [ `uname` = "Darwin" ] ; then + printf "Yes.\n" + mac_os_x=1 +else + printf "No.\n" + mac_os_x=0 +fi + if [ $errors -gt 0 ]; then cat <