* [PATCH] Fix linking with gcc to use g++ to link in C++ libs.
@ 2009-11-18 1:05 Stewart Smith
2009-11-18 16:29 ` Carl Worth
0 siblings, 1 reply; 2+ messages in thread
From: Stewart Smith @ 2009-11-18 1:05 UTC (permalink / raw)
To: notmuch
Previously, Ubuntu 9.10, gcc 4.4.1 was getting:
ccache gcc `pkg-config --libs glib-2.0 gmime-2.4 talloc` `xapian-config --libs` notmuch.o notmuch-config.o notmuch-dump.o notmuch-new.o notmuch-reply.o notmuch-restore.o notmuch-search.o notmuch-setup.o notmuch-show.o notmuch-tag.o notmuch-time.o gmime-filter-reply.o query-string.o show-message.o lib/notmuch.a -o notmuch
/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()'
---
Makefile.local | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Makefile.local b/Makefile.local
index f824bed..dbd3e20 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -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:
gzip --stdout notmuch.1 > notmuch.1.gz
--
1.6.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix linking with gcc to use g++ to link in C++ libs.
2009-11-18 1:05 [PATCH] Fix linking with gcc to use g++ to link in C++ libs Stewart Smith
@ 2009-11-18 16:29 ` Carl Worth
0 siblings, 0 replies; 2+ messages in thread
From: Carl Worth @ 2009-11-18 16:29 UTC (permalink / raw)
To: Stewart Smith, notmuch
On Wed, 18 Nov 2009 12:05:53 +1100, Stewart Smith <stewart@flamingspork.com> wrote:
> Previously, Ubuntu 9.10, gcc 4.4.1 was getting:
Thanks, Stewart!
It's always nice to get portability fixes. This should have beeen pushed
by the time I will have been able to send this email. :-)
-Carl
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-18 16:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-18 1:05 [PATCH] Fix linking with gcc to use g++ to link in C++ libs Stewart Smith
2009-11-18 16:29 ` Carl Worth
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).