[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Wrong linker chosen..

From: Ralf Wildenhues
Subject: Re: Wrong linker chosen..
Date: Fri, 18 Apr 2008 00:31:18 +0200
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

* Behdad Esfahbod wrote on Thu, Apr 17, 2008 at 04:14:35AM CEST:
> On Tue, 2008-04-15 at 20:09 +0200, Ralf Wildenhues wrote:
> > 
> > You have to help automake pick the right linker, its linker choosing
> > algorithm is blissfully unaware of conditionals.  You should be able to
> > set libcairo_la_LINK or cairo_LINK inside conditionals.  Look in a
> > Makefile.in how they are typically set (since this is an implementation
> > detail, beware: this changed between 1.9.6 and 1.10+).
> I would have been happy doing that if it was as simple as:
> libcairo_la_LINK = $(LINK)
> and
> libcairo_la_LINK = $(CXXLINK)
> But as it happens now I can't do that, since libcairo_la_LDFLAGS and
> libcairo_la_CFLAGS need to go in the middle of the LINK command.  It
> prolly works if I append at the end, but don't want to change any flag
> orders (yet).

Then do this: Use the latest Automake release (so you don't run into
problems later).  Look at how libcairo_la_LINK are defined with it, with
and without the C++ source file (just omit it from the sources and rerun
automake).  Copy those two definitions and use them in the conditionals.

> > Of course somebody writing a patch to lift this
> > limitation in Automake would help even more.  ;-)
> Shouldn't be too hard.  So this email of your goes to sit in my inbox
> beside two other ones from you, from 2006 and 2007.  Nice :-D.  See you
> in 2009!

I see you posted a ping for one of them.  Can you do so for the other as
well, please?  Let's see if we can avoid discussing these issues next


reply via email to

[Prev in Thread] Current Thread [Next in Thread]