X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=lib%2FMakefile.local;h=7105070b2a7b1ed9d6efd337898505a3b675076a;hp=f8489468eea069691eb372955f8445860a3bb78e;hb=07378d0d1485c7cc0b126965dacd4714ebfdaa93;hpb=266ab595a2fcbc8467eae843557597835269a554;ds=sidebyside diff --git a/lib/Makefile.local b/lib/Makefile.local index f8489468..7105070b 100644 --- a/lib/Makefile.local +++ b/lib/Makefile.local @@ -18,9 +18,12 @@ libnotmuch_cxx_srcs = \ $(dir)/thread.cc libnotmuch_modules = $(libnotmuch_c_srcs:.c=.o) $(libnotmuch_cxx_srcs:.cc=.o) -$(dir)/libnotmuch.so : $(libnotmuch_modules) + +$(dir)/$(SONAME) : $(libnotmuch_modules) $(call quiet,CXX,$(LDFLAGS)) $^ $(FINAL_LDFLAGS) -shared -Wl,-soname=$(SONAME) -o $@ - ln -sf $(SONAME) $@ + +$(dir)/libnotmuch.so: $(dir)/$(SONAME) + ln -fs $(SONAME) $@ SRCS := $(SRCS) $(libnotmuch_c_srcs) $(libnotmuch_cxx_srcs) -CLEAN := $(CLEAN) $(libnotmuch_modules) $(dir)/libnotmuch.so *.so +CLEAN := $(CLEAN) $(libnotmuch_modules) $(dir)/$(SONAME) $(dir)/libnotmuch.so *.so