]> git.notmuchmail.org Git - notmuch/blobdiff - lib/Makefile.local
Do not call ldconfig when building Debian package
[notmuch] / lib / Makefile.local
index a60ef989f49c21ca49618c56e35baef7a30c11a8..2d36db1cc84f53f151e9bf85ad430305d492a3cd 100644 (file)
@@ -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