[cairo] How to remove cairo's libstdc++ dependency?

Behdad Esfahbod behdad at behdad.org
Mon Aug 10 11:13:20 PDT 2009


On 07/25/2009 07:26 PM, Behdad Esfahbod wrote:
> On 07/24/2009 12:24 AM, M Joonas Pihlaja wrote:
>> Hi,
>>
>> Since including the Qt surface code into cairo master the autotools
>> are convinced we need to be linked using a C++ compiler even if the Qt
>> surface isn't enabled. This adds a dependency to libstdc++ to
>> libcairo which to me at least is an unwelcome one. It looks like
>> we've had this issue before as well with the BeOS backend, and in that
>> case the (imho kludgy) solution was just to comment out the backend
>> from the sources list.
>>
>> So I spent a while trying to understand why automake thinks we need a
>> C++ compiler to link and got as far as becoming very confused about
>> our build system. It appears to first think we're okay not to use C++
>> compiler to link and then in a second phase of automagic it backs up
>> and decides we need one after all. If anyone has any ideas on how to
>> get around this issue beyond "go bug the automake people", please do
>> tell. :)

Since I have the same issue with pango+harfbuzz now.  Seems like passing 
"-fno-rtti -fno-exceptions" as CXXFLAGS makes gcc/g++ not link to libstdc++.

behdad


More information about the cairo mailing list