[notmuch] libtool-less shared library building

2010-01-20 Thread David Bremner
On Wed, 20 Jan 2010 15:07:26 -0500, Ben Gamari  
wrote:
> Here is a short patch to build libnotmuch.so and link against the notmuch
> binary against it. I think the notmuch rule in Makefile.local is probably
> missing a dependency on lib/libnotmuch.so, but I wasn't sure how to specify it
> without having it be added to the linker command line.

It looks like that doesn't set an soname. Technically this isn't hard,
just add -Wl,-soname=$(SONAME) to the g++ command line. But keeping
track of when the soname should be bumped is a more challenging
enterprise.

d


[notmuch] libtool-less shared library building

2010-01-20 Thread Ben Gamari
Here is a short patch to build libnotmuch.so and link against the notmuch
binary against it. I think the notmuch rule in Makefile.local is probably
missing a dependency on lib/libnotmuch.so, but I wasn't sure how to specify it
without having it be added to the linker command line.

Let me know what you think. Thanks!

- Ben



[notmuch] libtool-less shared library building

2010-01-20 Thread Ben Gamari
Here is a short patch to build libnotmuch.so and link against the notmuch
binary against it. I think the notmuch rule in Makefile.local is probably
missing a dependency on lib/libnotmuch.so, but I wasn't sure how to specify it
without having it be added to the linker command line.

Let me know what you think. Thanks!

- Ben

___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch


Re: [notmuch] libtool-less shared library building

2010-01-20 Thread David Bremner
On Wed, 20 Jan 2010 15:07:26 -0500, Ben Gamari bgamari.f...@gmail.com wrote:
 Here is a short patch to build libnotmuch.so and link against the notmuch
 binary against it. I think the notmuch rule in Makefile.local is probably
 missing a dependency on lib/libnotmuch.so, but I wasn't sure how to specify it
 without having it be added to the linker command line.

It looks like that doesn't set an soname. Technically this isn't hard,
just add -Wl,-soname=$(SONAME) to the g++ command line. But keeping
track of when the soname should be bumped is a more challenging
enterprise.

d
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch