Re: ./configure with CC="ccache gcc" doesn't work
authorAndy Wingo <wingo@oblong.com>
Thu, 20 Jan 2011 12:40:01 +0000 (13:40 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:43 +0000 (09:37 -0800)
2e/6cebd5786fe3113e50abd11a838d00eb177f62 [new file with mode: 0644]

diff --git a/2e/6cebd5786fe3113e50abd11a838d00eb177f62 b/2e/6cebd5786fe3113e50abd11a838d00eb177f62
new file mode 100644 (file)
index 0000000..e8b7ab4
--- /dev/null
@@ -0,0 +1,75 @@
+Return-Path: <wingo@oblong.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 olra.theworths.org (Postfix) with ESMTP id 8ECB6431FB6\r
+       for <notmuch@notmuchmail.org>; Thu, 20 Jan 2011 04:45:17 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id Kdew8Fo5MmDN for <notmuch@notmuchmail.org>;\r
+       Thu, 20 Jan 2011 04:45:17 -0800 (PST)\r
+Received: from smtp-1.01.com (smtp-1.01.com [38.102.63.180])\r
+       by olra.theworths.org (Postfix) with ESMTP id 16C20431FB5\r
+       for <notmuch@notmuchmail.org>; Thu, 20 Jan 2011 04:45:17 -0800 (PST)\r
+Received: from localhost (localhost.localdomain [127.0.0.1])\r
+       by smtp-1.01.com (Postfix) with ESMTP id E7C14E0508;\r
+       Thu, 20 Jan 2011 06:45:15 -0600 (CST)\r
+Received: from smtp-1.01.com ([127.0.0.1])\r
+       by localhost (smtp-1.01.com [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id Bu7n8ArQYwqW; Thu, 20 Jan 2011 06:45:15 -0600 (CST)\r
+Received: from harpy.local (74.Red-80-24-4.staticIP.rima-tde.net [80.24.4.74])\r
+       by smtp-1.01.com (Postfix) with ESMTPSA id 2628FE0519;\r
+       Thu, 20 Jan 2011 06:45:14 -0600 (CST)\r
+From: Andy Wingo <wingo@oblong.com>\r
+To: Michal Sojka <sojkam1@fel.cvut.cz>\r
+Subject: Re: ./configure with CC="ccache gcc" doesn't work\r
+References: <m3ei8897za.fsf@oblong.com> <87zkqvnbu7.fsf@steelpick.2x.cz>\r
+Date: Thu, 20 Jan 2011 13:40:01 +0100\r
+In-Reply-To: <87zkqvnbu7.fsf@steelpick.2x.cz> (Michal Sojka's message of "Thu,\r
+       20 Jan 2011 10:50:08 +0100")\r
+Message-ID: <m339on7nq6.fsf@oblong.com>\r
+User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\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: Thu, 20 Jan 2011 12:45:17 -0000\r
+\r
+Hi Michal,\r
+\r
+On Thu 20 Jan 2011 10:50, Michal Sojka <sojkam1@fel.cvut.cz> writes:\r
+\r
+> Hmm, the IFS thing in configure seems annoying in this case. But you can\r
+> create a little script containing\r
+>\r
+>   exec ccache gcc "$@"\r
+>\r
+> and set CC to the name of the script, cannot you?\r
+\r
+Sure.  But the ccache thing is fairly common, AFAIK, and IMO notmuch's\r
+configure should either handle spaces in a non-absolute-path $CC or exit\r
+with an error in that case.\r
+\r
+And, oddly enough, the $CC does succeed in compiling, modulo this build\r
+error -- so it seems that the $IFS isn't actually providing any benefit\r
+in this case.  (If the IFS did its job, I would expect to see an error\r
+like "ccache gcc: command not found" or something.)\r
+\r
+Andy\r