notmuch/lib
Jani Nikula bc11759dd1 build: switch to hiding libnotmuch symbols by default
The dynamic generation of the linker version script for libnotmuch
exports has grown rather complicated.

Reverse the visibility control by hiding symbols by default using
-fvisibility=hidden, and explicitly exporting symbols in notmuch.h
using #pragma GCC visibility. (We could also use __attribute__
((visibility ("default"))) for each exported function, but the pragma
is more convenient.)

The above is not quite enough alone, as it would "leak" a number of
weak symbols from Xapian and C++ standard library. Combine it with a
small static version script that filters out everything except the
notmuch_* symbols that we explicitly exposed, and the C++ RTTI
typeinfo symbols for exception handling.

Finally, as the symbol hiding test can no longer look at the generated
symbol table, switch the test to parse the functions from notmuch.h.
2017-05-12 07:17:18 -03:00
..
built-with.c lib: add built_with handling for XAPIAN_DB_RETRY_LOCK 2016-06-29 09:05:49 +02:00
config.cc Use https instead of http where possible 2016-06-05 08:32:17 -03:00
database-private.h build: switch to hiding libnotmuch symbols by default 2017-05-12 07:17:18 -03:00
database.cc lib: Add regexp expansion for for tags and paths 2017-05-09 07:44:29 -03:00
directory.cc lib: update cached mtime in notmuch_directory_set_mtime 2016-08-23 20:58:46 -03:00
filenames.c Use https instead of http where possible 2016-06-05 08:32:17 -03:00
index.cc Use https instead of http where possible 2016-06-05 08:32:17 -03:00
Makefile fix sum moar typos [build scripts, Makefiles] 2011-06-23 15:44:59 -07:00
Makefile.local build: switch to hiding libnotmuch symbols by default 2017-05-12 07:17:18 -03:00
message-file.c Use https instead of http where possible 2016-06-05 08:32:17 -03:00
message-private.h lib: basic message-property API 2016-09-21 18:14:24 -03:00
message-property.cc Replace index(3) with strchr(3) 2017-04-20 06:59:22 -03:00
message.cc Replace index(3) with strchr(3) 2017-04-20 06:59:22 -03:00
messages.c Use https instead of http where possible 2016-06-05 08:32:17 -03:00
notmuch-private.h build: switch to hiding libnotmuch symbols by default 2017-05-12 07:17:18 -03:00
notmuch.h build: switch to hiding libnotmuch symbols by default 2017-05-12 07:17:18 -03:00
notmuch.sym build: switch to hiding libnotmuch symbols by default 2017-05-12 07:17:18 -03:00
parse-time-vrp.cc Use https instead of http where possible 2016-06-05 08:32:17 -03:00
parse-time-vrp.h Use https instead of http where possible 2016-06-05 08:32:17 -03:00
query-fp.cc Use https instead of http where possible 2016-06-05 08:32:17 -03:00
query-fp.h Use https instead of http where possible 2016-06-05 08:32:17 -03:00
query.cc lib: make notmuch_query_add_tag_exclude return a status value 2017-03-22 08:47:13 -03:00
regexp-fields.cc lib: Add regexp expansion for for tags and paths 2017-05-09 07:44:29 -03:00
regexp-fields.h lib: Add regexp searching for mid: prefix 2017-05-09 07:44:15 -03:00
sha1.c lib: use glib for sha1 digests instead of embedding libsha1 2017-01-08 10:50:38 -04:00
string-list.c Use https instead of http where possible 2016-06-05 08:32:17 -03:00
string-map.c lib: add talloc reference from string map iterator to map 2016-09-24 10:08:45 -03:00
tags.c Use https instead of http where possible 2016-06-05 08:32:17 -03:00
thread.cc lib: replace deprecated n_q_search_messages with status returning version 2017-03-22 08:35:07 -03:00