notmuch/lib
Carl Worth d64d0cc8d9 make install: Run ldconfig or install a DT_RUNPATH in binary as appropriate.
Various users were confused as to why they couldn't run notmuch
immediately after "make install", (with linker errors saying that
libnotmuch.so could not be found). The errors came from two different
causes:

1. The user had installed to a system library directory, but had not
   yet run ldconfig.

2. The user had installed to some non-system directory, and had not
   set the LD_LIBRARY_PATH variable.

With this change we fix both problems (on Linux) without the user
having to do anything additional. We first use ldconfig to find the
system library directories. If the user is installing to one of these,
then we run ldconfig as part of "make install".

For case (2) we use the -rpath and --enable-new-dtags linker options
to install a DT_RUNPATH entry in the binary. This entry tells the
dynamic linker where to find libnotmuch. Without the
--enable-new-dtags option only a DT_RPATH option would be installed,
(which has the drawback of not allowing any override with the
LD_LIBRARY_PATH variable).

Distributions (such as Debian and Fedora) don't want to see binaries
packaged with a DT_RPATH or DT_RUNPATH entry. This should be avoided
automatically as long as the packages install to standard locations,
(such as /usr/lib).
2010-06-04 16:52:56 -07:00
..
database-private.h Avoid database corruption by not adding partially-constructed mail documents. 2010-06-04 10:16:53 -07:00
database.cc Add support (and tests) for messages with really long message IDs. 2010-06-04 13:35:07 -07:00
directory.cc Avoid database corruption by not adding partially-constructed mail documents. 2010-06-04 10:16:53 -07:00
index.cc Do not segfault on empty mime parts 2010-04-13 08:49:06 -07:00
libsha1.c libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00
libsha1.h libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00
Makefile Makefiles: Use .DEFAULT to support arbitrary targets from sub directories. 2010-01-06 10:32:06 -08:00
Makefile.local make install: Run ldconfig or install a DT_RUNPATH in binary as appropriate. 2010-06-04 16:52:56 -07:00
message-file.c Make Received: header special in notmuch_message_file_get_header 2010-04-26 14:44:06 -07:00
message.cc Avoid database corruption by not adding partially-constructed mail documents. 2010-06-04 10:16:53 -07:00
messages.c lib: Rename iterator functions to prepare for reverse iteration. 2010-03-09 09:22:29 -08:00
notmuch-private.h Add support (and tests) for messages with really long message IDs. 2010-06-04 13:35:07 -07:00
notmuch.h lib: Ensure notmuch_query_search_messages returns NULL on an exception. 2010-04-24 07:27:50 -07:00
query.cc lib: Ensure notmuch_query_search_messages returns NULL on an exception. 2010-04-24 07:27:50 -07:00
sha1.c Typsos 2009-11-18 03:21:36 -08:00
tags.c lib: Rename iterator functions to prepare for reverse iteration. 2010-03-09 09:22:29 -08:00
thread.cc Fix SEGV in _thread_cleanup_author if author ends with ', ' 2010-04-27 16:34:27 -07:00
xutil.c xutil: Implement xstrndup without relying on strndup. 2009-12-01 12:51:39 -08:00
xutil.h libify: Move library sources down into lib directory. 2009-11-09 16:24:03 -08:00