This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
How to compile libstdc++.a libgcc.a with -fPIC ?
- From: Ulrich Holtmann <Ulrich dot Holtmann at synopsys dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 22 Apr 2009 23:30:49 +0200
- Subject: How to compile libstdc++.a libgcc.a with -fPIC ?
Hi,
is it possible to configure gcc 4.2.2 as
"--disable-shared" + "-fPIC for libstdc++.a, libgcc.a, ..." ?
I want to use libstdc++.a for building a shared library on Linux RH4 64-bit
in order to avoid dependencies to LD_LIBRARY_PATH.
Second question: is this advisable? I see hints that exception handling across
boundaries of shared libraries may fail in this case.
Ulli