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

Subject: Re: [notmuch] [PATCH] Build and link against notmuch shared library

Date: Wed, 20 Jan 2010 21:20:42 +0100

To: Ben Gamari

Cc: notmuch@notmuchmail.org

From: Mike Hommey


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

Thread: