This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [java] RFC/RFA: libgcj_bc.so.1
- From: Bryce McKinlay <mckinlay at redhat dot com>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: Java Patches <java-patches at gcc dot gnu dot org>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Ulrich Drepper <drepper at redhat dot com>
- Date: Fri, 14 Jul 2006 12:04:05 -0400
- Subject: Re: [java] RFC/RFA: libgcj_bc.so.1
- References: <44B71F98.9020705@redhat.com> <20060714075908.GM32572@devserv.devel.redhat.com>
Jakub Jelinek wrote:
On the other side, if
/usr/lib*/libgcj_bc.so.1 is a symlink to
libgcj_bc.so.1.0.0 and /usr/lib*/libgcj_bc.so.1.0.0 is a dummy shared
library (
gcc -shared -O2 -fpic -xc /dev/null -Wl,-soname,libgcj_bc.so.1 -o libgcj_bc.so.1.0.0 -lgcj
), then both libgcj.so.37 and libgcj_bc.so.1 will be in ld.so.conf.
Well, we already tried this approach. It doesn't work because if
libgcj_bc.so.1 is linked to libgcj.so.37, then the linker adds a
DT_NEEDED for libgcj.so.37 to any binaries that are linked with
-lgcj_bc. The --no-add-needed linker option is supposed to stop this
from happening, but it doesn't work.
Bryce