[notmuch] [PATCH] Build and link against notmuch shared library

Mike Hommey mh+notmuch at glandium.org
Wed Jan 20 12:20:42 PST 2010


On Wed, Jan 20, 2010 at 03:07:27PM -0500, Ben Gamari wrote:
> +	install lib/libnotmuch.so $(DESTDIR)$(prefix)/lib/

> +$(dir)/libnotmuch.so: $(libnotmuch_modules)
> +	$(call quiet,CXX,$(LDFLAGS)) $^ $(FINAL_LDFLAGS) -shared -o $@

If you're going to install that in $(prefix)/lib, you'd better make that
a library with a SONAME. -Wl,-soname,$(notdir $@) should do it, and
you'd obviously have to change the target name to add a SO version.

Mike


More information about the notmuch mailing list