X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=lib%2FMakefile.local;h=9c0facce2b54ddce48fa619f8e983f2e27124da6;hb=8369ed31d0d687c35dc2464b347dadf16962cd27;hp=62f23169c27aa2bfc5f28b0da83dc038b56332aa;hpb=a54cecfc8e8fb501d783806b1b603c7b283e00a1;p=notmuch diff --git a/lib/Makefile.local b/lib/Makefile.local index 62f23169..9c0facce 100644 --- a/lib/Makefile.local +++ b/lib/Makefile.local @@ -35,6 +35,9 @@ LINKER_NAME = libnotmuch.$(LIBRARY_SUFFIX) 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) +LIBRARY_INSTALL_POST_COMMAND=ldconfig +endif endif dir := lib @@ -80,6 +83,7 @@ install-$(dir): ln -sf $(LIBNAME) $(DESTDIR)$(libdir)/$(LINKER_NAME) mkdir -p $(DESTDIR)$(includedir) install -m0644 $(dir)/notmuch.h $(DESTDIR)$(includedir)/ + $(LIBRARY_INSTALL_POST_COMMAND) SRCS := $(SRCS) $(libnotmuch_c_srcs) $(libnotmuch_cxx_srcs) CLEAN := $(CLEAN) $(libnotmuch_modules) $(dir)/$(SONAME) $(dir)/$(LINKER_NAME) $(dir)$(LIBNAME) libnotmuch.a