From: Aaron Ecay Date: Sun, 11 Apr 2010 23:44:51 +0000 (-0400) Subject: Use C++ compiler to link notmuch binaries X-Git-Tag: 0.2~54 X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=commitdiff_plain;h=16f0e7dcf4dc42f9637fdc82f887761b246b98c9;hp=db96d67ba2e2ae01bc3139a3a22cc5433880cbae Use C++ compiler to link notmuch binaries Since the binaries contain C++ code, it is necessary to use the C++ linker, or errors result on some platforms (OS X). Signed-off-by: Aaron Ecay --- diff --git a/Makefile.local b/Makefile.local index 9a1d055b..8b926f8d 100644 --- a/Makefile.local +++ b/Makefile.local @@ -217,10 +217,10 @@ notmuch_client_srcs = \ notmuch_client_modules = $(notmuch_client_srcs:.c=.o) notmuch: $(notmuch_client_modules) lib/libnotmuch.a - $(call quiet,CC $(CFLAGS)) $^ $(FINAL_LIBNOTMUCH_LDFLAGS) -o $@ + $(call quiet,CXX $(CFLAGS)) $^ $(FINAL_LIBNOTMUCH_LDFLAGS) -o $@ notmuch-shared: $(notmuch_client_modules) lib/libnotmuch.so - $(call quiet,CC $(CFLAGS)) $(notmuch_client_modules) $(FINAL_NOTMUCH_LDFLAGS) -o $@ + $(call quiet,CXX $(CFLAGS)) $(notmuch_client_modules) $(FINAL_NOTMUCH_LDFLAGS) -o $@ notmuch.1.gz: notmuch.1 gzip --stdout $^ > $@