This is the mail archive of the
mailing list for the GCC project.
Re: PATCH RFA: Add -static-libstdc++ option to g++
David Edelsohn <firstname.lastname@example.org> writes:
> I fully agree with the concept. The options on AIX are -bstatic and
> -bdynamic with lowercase "-b", so I will need to generalize the patch
OK--I stole the idea from fortran/gfortranspec.c so you may want to look
at that while you're at it.
> Is there a potential problem of mixing static libstdc++ and dynamic
> libgcc with different exception handling versions?
No. The exception handling issues only arise when using a static
libgcc: with a static libgcc, on some systems, you can not throw and
catch exceptions across shared library boundaries. This limitation has
been fixed on current GNU/Linux systems anyhow, with the use of the
linker's --eh-frame-hdr option.