This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Multiple GCC versions and libstdc++.so


"Richard Sewards" <richard.sewards@exfo.com> writes:

> Is it not possible to make libstdc++ and libgcc_s static, somewhat
> equivalent to the crtX.o objects linked prior to main, and still support
> the exception stuff across libraries?

On GNU/Linux, it is.  You can link with the -static-libgcc and
-static-libstdc++ options (the latter is new in gcc 4.5) and everything
should work.  I'm not aware of any non-GNU/Linux systems for which this
will work reliably.  It requires a linker which support --eh-frame-hdr
and a libc which supports dl_iterate_phdr.  A few more notes at
http://www.airs.com/blog/archives/166 .

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]