From: David Bremner Date: Wed, 1 Jul 2015 06:07:48 +0000 (+0200) Subject: Re: [PATCH] build: Support Mac OS X 10.6.8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=132b245a8b29ead0d902aba06e49f8d9fedeff80;p=notmuch-archives.git Re: [PATCH] build: Support Mac OS X 10.6.8 --- diff --git a/12/578405c6d68c876f1b6ecbca78fe76f0139b66 b/12/578405c6d68c876f1b6ecbca78fe76f0139b66 new file mode 100644 index 000000000..5798668a7 --- /dev/null +++ b/12/578405c6d68c876f1b6ecbca78fe76f0139b66 @@ -0,0 +1,83 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id EBA446DE0FF8 + for ; Tue, 30 Jun 2015 23:09:04 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: 0.173 +X-Spam-Level: +X-Spam-Status: No, score=0.173 tagged_above=-999 required=5 tests=[AWL=0.173] + autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id leSh4VxCHq_9 for ; + Tue, 30 Jun 2015 23:09:02 -0700 (PDT) +Received: from mx.xen14.node3324.gplhost.com (gitolite.debian.net + [87.98.215.224]) + by arlo.cworth.org (Postfix) with ESMTPS id 82E716DE0B44 + for ; Tue, 30 Jun 2015 23:09:01 -0700 (PDT) +Received: from remotemail by mx.xen14.node3324.gplhost.com with local (Exim + 4.80) (envelope-from ) + id 1ZABBn-00072C-Fp; Wed, 01 Jul 2015 06:08:07 +0000 +Received: (nullmailer pid 26637 invoked by uid 1000); Wed, 01 Jul 2015 + 06:07:48 -0000 +From: David Bremner +To: Nate Eagleson , notmuch@notmuchmail.org +Subject: Re: [PATCH] build: Support Mac OS X 10.6.8 +In-Reply-To: <1435699747-13591-2-git-send-email-nate@nateeag.com> +References: <1435699747-13591-1-git-send-email-nate@nateeag.com> + <1435699747-13591-2-git-send-email-nate@nateeag.com> +User-Agent: Notmuch/0.20.2 (http://notmuchmail.org) Emacs/24.4.1 + (x86_64-pc-linux-gnu) +Date: Wed, 01 Jul 2015 08:07:48 +0200 +Message-ID: <87egksjtqj.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +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, 01 Jul 2015 06:09:05 -0000 + +Nate Eagleson writes: + +> OS X 10.6.8 has a built-in library named libutil.dylib and a version +> of ld that picks that up instead of util/libutil.a. +> +> We now use an absolute path to util/libutil.a, so that notmuch can be +> built successfully on 10.6.8. + +I'd like a one line subject that mentions libutil.a and perhaps +"absolute path" + +> +> +# Mac OS X 10.6 has a built-in libutil.dylib that prevents ld from +> +# picking up notmuch's libutil.a. The best way to prefer our local +> +# libutil.a is to specify it via absolute path, which should work on +> +# all supported OSes. +> +LIBUTIL_PATH=${srcdir}/util/libutil.a +> + + +This needs to be relative to ${dir}, not ${srcdir} in order not to break +out of tree builds. You can test with + +% mkdir -p /tmp/foo-build +% cd /tmp/foo-build +% ~/projects/notmuch/configure && make + +Also, one Makefile gotcha is that anything using $(dir) should use := +rather than = to force immediate expansion. + +Cheers, + +David