This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/21277] Runtime error with C++ shared library and --disable-shared
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 May 2005 07:57:53 -0000
- Subject: [Bug target/21277] Runtime error with C++ shared library and --disable-shared
- References: <20050429073316.21277.info@yourkit.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ebotcazou at gcc dot gnu dot org 2005-05-02 07:57 -------
> readelf -r libq.so | grep R_SPARC_WDISP30 gives the following:
OK, the fundamental problem is that you're trying to build shared libraries with
a compiler configured with --disable-shared. That's not really intended (and
might cause problems for exception propagation in C++).
The fix is indeed to recompile every GCC library with -fPIC. Try to configure
at toplevel --with-pic, but I'm not sure the option is valid there. Otherwise
you'll need to specifically configure libstdc++-v3 --with-pic.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21277