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

2010-01-24 Thread Scott Robinson
Excerpts from bgamari.foss's message of Sat Jan 23 12:58:42 -0600 2010:
 True, but I don't think that this means that we need to link the
 executable with a C++ compiler. I've tried linking with CC and it seems
 to succeed, so I don't think there should be a problem changing it.

Are you using cc or gcc?

Even when cc is an alias to gcc, there are different semantics. And cc vs.
cpp can be even more different on non-GCC compilers.

I wouldn't mess with it. :-)
notmuch mailing list

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

2010-01-20 Thread Mike Hommey
On Wed, Jan 20, 2010 at 03:07:27PM -0500, Ben Gamari wrote:
 + install lib/ $(DESTDIR)$(prefix)/lib/

 +$(dir)/ $(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.

notmuch mailing list