[PATCH] remove GCC visibility pragmas

Tomi Ollila tomi.ollila at iki.fi
Mon Oct 31 05:01:28 PDT 2011


libnotmuch.so.* linking fail on some environments. According to
David Bremner on irc:
 "We jump through hoops with the linker script (notmuch.sym) so
 the pragmas are not needed. And they are a little bizarre in a
 library anyway..."
---
 util/xutil.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/util/xutil.h b/util/xutil.h
index 9299256..b84e0e2 100644
--- a/util/xutil.h
+++ b/util/xutil.h
@@ -25,8 +25,6 @@
 #include <sys/types.h>
 #include <regex.h>
 
-#pragma GCC visibility push(hidden)
-
 /* xutil.c */
 void *
 xcalloc (size_t nmemb, size_t size);
@@ -51,6 +49,4 @@ int
 xregexec (const regex_t *preg, const char *string,
 	  size_t nmatch, regmatch_t pmatch[], int eflags);
 
-#pragma GCC visibility pop
-
 #endif
-- 
1.7.6.2


More information about the notmuch mailing list