Fix linking with gcc to use g++ to link in C++ libs.

Previously, Ubuntu 9.10, gcc 4.4.1 was getting:

/usr/bin/ld: lib/notmuch.a(database.o): in function global
constructors keyed to BOOLEAN_PREFIX_INTERNAL:database.cc(.text+0x3a):
error: undefined reference to 'std::ios_base::Init::Init()'
This commit is contained in:
Stewart Smith 2009-11-18 12:05:53 +11:00 committed by Carl Worth
parent fe6d3b79b0
commit b032cf98f5

View file

@ -18,7 +18,7 @@ notmuch_client_srcs = \
notmuch_client_modules = $(notmuch_client_srcs:.c=.o)
notmuch: $(notmuch_client_modules) lib/notmuch.a
$(CC) $(LDFLAGS) $^ -o $@
$(CXX) $(LDFLAGS) $^ -o $@
notmuch.1.gz: notmuch.1
gzip --stdout notmuch.1 > notmuch.1.gz