diff options
author | Michal Sojka <sojkam1@fel.cvut.cz> | 2010-06-16 16:14:18 +0200 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-10-28 13:06:46 -0700 |
commit | f7a688ec5314e668a6976805ae88d4e62f7cbd89 (patch) | |
tree | e0aa2312f19610ffe8369aa081c6d73577f1fa95 /lib/Makefile.local | |
parent | ce6390cee7b2edc25ca17f9c1224017b56f24696 (diff) |
Do not call ldconfig when building Debian package
Hi,
If I want to build Debian package, it fails with the following message:
ldconfig: Can't create temporary cache file /etc/ld.so.cache~: Permission denied
make[1]: *** [install-lib] Error 1
The reason is that I build the package as a non-root user and make
install invokes ldconfig unconditionally. The following patch contains a
workaround, but I think that a more correct solution would be to check
the condition LIBDIR_IN_LDCONFIG directly when make install is invoked
rather than in configure as it is done now.
Signed-off-by: Michal Sojka <sojkam1@fel.cvut.cz>
Diffstat (limited to 'lib/Makefile.local')
-rw-r--r-- | lib/Makefile.local | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Makefile.local b/lib/Makefile.local index a60ef989..2d36db1c 100644 --- a/lib/Makefile.local +++ b/lib/Makefile.local @@ -36,9 +36,11 @@ SONAME = $(LINKER_NAME).$(LIBNOTMUCH_VERSION_MAJOR) LIBNAME = $(SONAME).$(LIBNOTMUCH_VERSION_MINOR).$(LIBNOTMUCH_VERSION_RELEASE) LIBRARY_LINK_FLAG = -shared -Wl,-soname=$(SONAME) ifeq ($(LIBDIR_IN_LDCONFIG),1) +ifeq ($(DESTDIR),) LIBRARY_INSTALL_POST_COMMAND=ldconfig endif endif +endif dir := lib extra_cflags += -I$(dir) -fPIC |