Compiling libstdc++-v3 without the testsuite
Paolo Carlini
pcarlini@suse.de
Fri Dec 3 21:11:00 GMT 2004
Hi,
>Greetings,
>
>I am attempting to build a g++ cross-compiler without support for
>exceptions. My problem is that the libstdc++-v3 testsuite uses the throw()
>statement in about a million places and therefore refuses to compile. Is
>there a ./configure time option which prevents compilation of the
>testsuite? I cannot find one in the docs.
>
>
If I understand correctly your problem, in principle you only need to pass
-fno-exceptions at build time, as part of the CXXFLAGS.
*But* I see that probably recently we are not testing sufficiently with
that option
and you may need to fix locally a bit the code (we'll take care of those
issues
ASAP): have a look to libstdc++-v3/libsupc++/exceptions_define.h, the idea
is that in principle we should never use naked throw,
__throw_exception_again
instead. For me, 3.4.x works out of the box by just fixing a couple of
naked throw
in testsuite_abi.cc.
I hope you will find this info useful, maybe others more expert than me
in this
area can give you other suggestions.
Paolo.
More information about the Libstdc++
mailing list