On 17/09/2012 17:10, Matt Turner wrote: > Is this behavior by design? Is there some other way I can force C++ > linking conditionally?
There is also the opposite case where this is useful: code like fdk-aac, which has to be compiled with a C++ compiler but uses none of the C++ library features and should be linked as C ... fdk-aac does this by rewriting the LINK variable for it [1] but it's a nasty hack and also relies on a dummy.c file. Having a foo_LANGUAGE = C or foo_LANGUAGE = C++ would be nice indeed... [1] http://goo.gl/aEUbG -- Diego Elio Pettenò — Flameeyes flamee...@flameeyes.eu — http://blog.flameeyes.eu/