[PATCH] configure: replace ${CXXLAGS} with ${CXXFLAGS_for_sh}
authorTomi Ollila <tomi.ollila@iki.fi>
Tue, 3 May 2016 17:23:44 +0000 (20:23 +0300)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 23:21:45 +0000 (16:21 -0700)
63/045e6f86e842c33165e3a8b8e7facb1095164f [new file with mode: 0644]

diff --git a/63/045e6f86e842c33165e3a8b8e7facb1095164f b/63/045e6f86e842c33165e3a8b8e7facb1095164f
new file mode 100644 (file)
index 0000000..57d22e6
--- /dev/null
@@ -0,0 +1,69 @@
+Return-Path: <too@guru-group.fi>\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 9E9DE6DE01F7\r
+ for <notmuch@notmuchmail.org>; Tue,  3 May 2016 10:24:01 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.274\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.274 tagged_above=-999 required=5 tests=[AWL=0.283, \r
+ HEADER_FROM_DIFFERENT_DOMAINS=0.001, T_RP_MATCHES_RCVD=-0.01]\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 7CgFqh8HGa5J for <notmuch@notmuchmail.org>;\r
+ Tue,  3 May 2016 10:23:53 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id CAFA66DE00DF\r
+ for <notmuch@notmuchmail.org>; Tue,  3 May 2016 10:23:51 -0700 (PDT)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+ id 64C0D1001F4; Tue,  3 May 2016 20:23:46 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Cc: tomi.ollila@iki.fi\r
+Subject: [PATCH] configure: replace ${CXXLAGS} with ${CXXFLAGS_for_sh}\r
+Date: Tue,  3 May 2016 20:23:44 +0300\r
+Message-Id: <1462296224-768-1-git-send-email-tomi.ollila@iki.fi>\r
+X-Mailer: git-send-email 2.6.4\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 03 May 2016 17:24:01 -0000\r
+\r
+Variable CXXLAGS expands to nothing, CXXFLAGS something unusable\r
+here; CXXFLAGS_for_sh expands to what we expect here.\r
+---\r
+\r
+I was palying with a patch set that enables 'set -eu' in usable way\r
+when I noticed this...\r
+\r
+ configure | 2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+diff --git a/configure b/configure\r
+index 09e009b34115..0cbd64b1d26b 100755\r
+--- a/configure\r
++++ b/configure\r
+@@ -380,7 +380,7 @@ int main(int argc, char** argv) {\r
+    Xapian::WritableDatabase db("test.db",Xapian::DB_CREATE_OR_OPEN);\r
+ }\r
+ EOF\r
+-    ${CXX} ${CXXLAGS} ${xapian_cxxflags} _default_backend.cc -o _default_backend ${xapian_ldflags}\r
++    ${CXX} ${CXXFLAGS_for_sh} ${xapian_cxxflags} _default_backend.cc -o _default_backend ${xapian_ldflags}\r
+     ./_default_backend\r
+     if [ -f test.db/iamglass ]; then\r
+       default_xapian_backend=glass\r
+-- \r
+2.6.4\r
+\r