[PATCH] remove GCC visibility pragmas
authorTomi Ollila <tomi.ollila@iki.fi>
Mon, 31 Oct 2011 12:01:28 +0000 (14:01 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:39:55 +0000 (09:39 -0800)
ad/b79c96d7a69a1a976903b7b99841a3016c9049 [new file with mode: 0644]

diff --git a/ad/b79c96d7a69a1a976903b7b99841a3016c9049 b/ad/b79c96d7a69a1a976903b7b99841a3016c9049
new file mode 100644 (file)
index 0000000..18b4aae
--- /dev/null
@@ -0,0 +1,87 @@
+Return-Path: <tomi.ollila@nixu.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 01FB9431FD0\r
+       for <notmuch@notmuchmail.org>; Mon, 31 Oct 2011 05:01:34 -0700 (PDT)\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 eM3oH5-QDWbc for <notmuch@notmuchmail.org>;\r
+       Mon, 31 Oct 2011 05:01:33 -0700 (PDT)\r
+Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31])\r
+       (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 1B249431FB6\r
+       for <notmuch@notmuchmail.org>; Mon, 31 Oct 2011 05:01:32 -0700 (PDT)\r
+Received: from taco2.nixu.fi (localhost [127.0.0.1])\r
+       by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id\r
+       p9VC1VE9029276\r
+       (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT)\r
+       for <notmuch@notmuchmail.org>; Mon, 31 Oct 2011 14:01:31 +0200\r
+Received: (from too@localhost)\r
+       by taco2.nixu.fi (8.14.3/8.14.3/Submit) id p9VC1SQJ029275;\r
+       Mon, 31 Oct 2011 14:01:28 +0200\r
+X-Authentication-Warning: taco2.nixu.fi: too set sender to\r
+       tomi.ollila@nixu.com using -f\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] remove GCC visibility pragmas\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+       $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+       !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Mon, 31 Oct 2011 14:01:28 +0200\r
+Message-ID: <yf67h3lgyjr.fsf@taco2.nixu.fi>\r
+User-Agent: Gnus/5.110014 (No Gnus v0.14) Emacs/22.2 (gnu/linux)\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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: Mon, 31 Oct 2011 12:01:35 -0000\r
+\r
+libnotmuch.so.* linking fail on some environments. According to\r
+David Bremner on irc:\r
+ "We jump through hoops with the linker script (notmuch.sym) so\r
+ the pragmas are not needed. And they are a little bizarre in a\r
+ library anyway..."\r
+---\r
+ util/xutil.h |    4 ----\r
+ 1 files changed, 0 insertions(+), 4 deletions(-)\r
+\r
+diff --git a/util/xutil.h b/util/xutil.h\r
+index 9299256..b84e0e2 100644\r
+--- a/util/xutil.h\r
++++ b/util/xutil.h\r
+@@ -25,8 +25,6 @@\r
+ #include <sys/types.h>\r
+ #include <regex.h>\r
\r
+-#pragma GCC visibility push(hidden)\r
+-\r
+ /* xutil.c */\r
+ void *\r
+ xcalloc (size_t nmemb, size_t size);\r
+@@ -51,6 +49,4 @@ int\r
+ xregexec (const regex_t *preg, const char *string,\r
+         size_t nmatch, regmatch_t pmatch[], int eflags);\r
\r
+-#pragma GCC visibility pop\r
+-\r
+ #endif\r
+-- \r
+1.7.6.2\r