bug-automake
[Top][All Lists]
Advanced

[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: Tue, 15 Apr 2008 20:09:57 +0200
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Hi Behdad,

* Behdad Esfahbod wrote on Tue, Apr 15, 2008 at 07:39:19PM CEST:
> In short, all cairo source is C code, except for the BeOS backend that
> is C++.  So we have a block like this in our Makefile.am:

> However, even if CAIRO_HAS_BEOS_SURFACE is false, the C++ linker is
> chosen to link cairo.  That we want to avoid.  Any hints?

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+).

If that Makefile.am otherwise has no other C++ code, and you are not
using cairo_LDFLAGS, you can just override
  CXXLINK = $(LINK)

I guess.

Hope that helps.  Of course somebody writing a patch to lift this
limitation in Automake would help even more.  ;-)

Cheers,
Ralf




reply via email to

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