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