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