--- /dev/null
+Return-Path: <nate4d@gmail.com>\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 36F396DE1A7C\r
+ for <notmuch@notmuchmail.org>; Tue, 2 Jun 2015 13:37:34 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.129\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.129 tagged_above=-999 required=5\r
+ tests=[AWL=-0.551, DATE_IN_PAST_06_12=1.103, DKIM_SIGNED=0.1,\r
+ DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7,\r
+ RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001,\r
+ T_FREEMAIL_FORGED_FROMDOMAIN=0.01,\r
+ T_HEADER_FROM_DIFFERENT_DOMAINS=0.01] 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 uEybvFnonyo9 for <notmuch@notmuchmail.org>;\r
+ Tue, 2 Jun 2015 13:37:31 -0700 (PDT)\r
+Received: from mail-qg0-f46.google.com (mail-qg0-f46.google.com\r
+ [209.85.192.46])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id 714626DE138F\r
+ for <notmuch@notmuchmail.org>; Tue, 2 Jun 2015 13:37:31 -0700 (PDT)\r
+Received: by qgfa63 with SMTP id a63so64067695qgf.0\r
+ for <notmuch@notmuchmail.org>; Tue, 02 Jun 2015 13:37:30 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=sender:from:content-type:content-transfer-encoding:subject:date\r
+ :message-id:to:mime-version;\r
+ bh=ZtpAbHRiZ89cQ0Qzh0dCMNw8K5lg+JksPouXbT/TmYc=;\r
+ b=F6CTARUInyfROIwIB6u7whdCpMAPpZNW0q3Gmu/yuhjSJDf/2zX5+L43vTOrw0Z4L2\r
+ ciLCD+PjokkwGoQABQtPcKTp+ZHormGFCtY9PzLR1jekDuoldxXrCMhaqFxILfwEvJb8\r
+ GP2YJo0wesZRAg2URUvnsUWhtFICP/aZA+NlboygMhHr4sylJKRPkA5pgXDwUvewYT/3\r
+ /CEe45o9XA1joiY8LSoJcdHlN/PAT6kNqRay53YhiAC8NuOXF3pWd2NJnXK8hPiayfy+\r
+ 9Hf8G9+lHX9jL/eVonABa1vjq5EfM4jE3JZlpFYIqAjaKdhT1rfLCOcaWR504X/TnWit\r
+ MOkw==\r
+X-Received: by 10.140.231.85 with SMTP id b82mr33220873qhc.2.1433277450261;\r
+ Tue, 02 Jun 2015 13:37:30 -0700 (PDT)\r
+Received: from [10.46.105.6] ([70.42.157.61])\r
+ by mx.google.com with ESMTPSA id 9sm7873282qhy.1.2015.06.02.13.37.25\r
+ for <notmuch@notmuchmail.org>\r
+ (version=TLSv1 cipher=RC4-SHA bits=128/128);\r
+ Tue, 02 Jun 2015 13:37:29 -0700 (PDT)\r
+Sender: Nathan Eagleson <nate4d@gmail.com>\r
+From: Nate Eagleson <nate@nateeag.com>\r
+Content-Type: text/plain; charset=us-ascii\r
+Content-Transfer-Encoding: quoted-printable\r
+Subject: build failure on Mac OS X 10.6.8 - diagnosis\r
+Date: Tue, 2 Jun 2015 08:46:53 -0400\r
+Message-Id: <BF399CD7-300D-413C-8CC0-62B541A871B2@nateeag.com>\r
+To: notmuch@notmuchmail.org\r
+Mime-Version: 1.0 (Apple Message framework v1085)\r
+X-Mailer: Apple Mail (2.1085)\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: Tue, 02 Jun 2015 20:37:34 -0000\r
+\r
+Hi folks,\r
+\r
+I'm trying to move from Apple's Mail.app in favor of =\r
+offlineimap/notmuch, but\r
+I've run into a notmuch build failure on Mac OS X 10.6.8.\r
+\r
+The failure was reported on this list a few months ago, but no =\r
+explanation or\r
+solution was found:\r
+\r
+http://notmuchmail.org/pipermail/notmuch/2015/020531.html\r
+\r
+By appending `-Wl,-t` to `FINAL_NOTMUCH_LDFLAGS` in Makefile.local, I\r
+got 10.6.8's ld to dump the list of archives and dylibs that are being\r
+linked in the failed compile.\r
+\r
+That list includes `/usr/lib/libutil.dylib`, but not notmuch's built-in\r
+`util/libutil.a`.\r
+\r
+I have not found a sane way to tell 10.6.8's ld to prefer libutil.a over\r
+libutil.dylib.\r
+\r
+My first thought was that there should be an option to prefer archives =\r
+over\r
+dylibs, but that does not seem to exist in 10.6.8's (or earlier) version =\r
+of ld.\r
+Instead, people are recommending absolute paths when you need to link an\r
+archive file in preference to existing dylibs:\r
+\r
+=\r
+http://lists.apple.com/archives/darwin-development/2003/Sep/msg00008.html\r
+http://stackoverflow.com/questions/844819/how-to-static-link-on-os-x\r
+\r
+As a simple test, I added a hardcoded absolute path to libutil to\r
+FINAL_NOTMUCH_LDFLAGS, and the compile succeeded.\r
+\r
+Thus, it seems like getting the path to the Makefile's parent directory =\r
+and\r
+using it to specify an absolute path to libutil.a in the Makefile would =\r
+address\r
+this issue without introducing new ones.\r
+\r
+Does this sound like a sane solution? Would a patch to do this be =\r
+accepted?\r
+\r
+If not, what would be a better way to solve this?\r
+\r
+Thanks.\r
+\r
+-Nate\r
+\r