unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* link error
@ 2009-11-19  8:13 Peter Wang
  2009-11-19  9:41 ` James Rowe
  2009-11-20  1:32 ` Carl Worth
  0 siblings, 2 replies; 3+ messages in thread
From: Peter Wang @ 2009-11-19  8:13 UTC (permalink / raw
  To: notmuch

Hi,

Linking fails on my system for some reason (undefined references to
talloc functions).  Putting $(LDFLAGS) after the object list solves it.

Peter

diff --git a/Makefile.local b/Makefile.local
index 27e42ba..c2fbe21 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
-	$(CXX) $(LDFLAGS) $^ -o $@
+	$(CXX) $^ $(LDFLAGS) -o $@
 
 notmuch.1.gz: notmuch.1
 	gzip --stdout notmuch.1 > notmuch.1.gz

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: link error
  2009-11-19  8:13 link error Peter Wang
@ 2009-11-19  9:41 ` James Rowe
  2009-11-20  1:32 ` Carl Worth
  1 sibling, 0 replies; 3+ messages in thread
From: James Rowe @ 2009-11-19  9:41 UTC (permalink / raw
  To: notmuch

* Peter Wang (novalazy@gmail.com) wrote:
> Linking fails on my system for some reason (undefined references to
> talloc functions).  Putting $(LDFLAGS) after the object list solves it.

  I have a similar ordering change in the ebuild I posted earlier as
a workaround for people using ld's --as-needed option.

Thanks,

James

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: link error
  2009-11-19  8:13 link error Peter Wang
  2009-11-19  9:41 ` James Rowe
@ 2009-11-20  1:32 ` Carl Worth
  1 sibling, 0 replies; 3+ messages in thread
From: Carl Worth @ 2009-11-20  1:32 UTC (permalink / raw
  To: Peter Wang, notmuch

On Thu, 19 Nov 2009 19:13:35 +1100, Peter Wang <novalazy@gmail.com> wrote:
> Linking fails on my system for some reason (undefined references to
> talloc functions).  Putting $(LDFLAGS) after the object list solves
> it.

Thanks Peter.

I've pushed this now.

-Carl

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-20  1:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-19  8:13 link error Peter Wang
2009-11-19  9:41 ` James Rowe
2009-11-20  1:32 ` 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).