This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug libgcj/28698] [gcj] libgcj-bc only used when building shared libs, not executables
- From: "debian-gcc at lists dot debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: 23 Aug 2006 09:20:53 -0000
- Subject: [Bug libgcj/28698] [gcj] libgcj-bc only used when building shared libs, not executables
- References: <bug-28698-5724@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from debian-gcc at lists dot debian dot org 2006-08-23 09:20 -------
There seems to be a mismatch in the installation of the unversioned
libgcj_bc.so in the fc rpm and the trunk. On the trunk, this library is created
using
$(libgcj_bc_dummy_LINK) -xc /dev/null -Wl,-soname,libgcj_bc.so.1 \
-o $(DESTDIR)$(toolexeclibdir)/libgcj_bc.so.1.0.0 -lgcj
where libgcj is the real libgcj.so, while in the spec file, a dummy libgcj.so
is created first.
mkdir libgcj_bc
gcc/xgcc -B gcc/ $OPT_FLAGS $LIBGCJ_BC_CFLAGS -shared -fpic -xc /dev/null \
-o libgcj_bc/libgcj.so -Wl,-soname,libgcj.so.7rh -nostdlib
gcc/xgcc -B gcc/ $OPT_FLAGS $LIBGCJ_BC_CFLAGS -shared -fpic
../libjava/libgcj_bc.c \
-o libgcj_bc/libgcj_bc.so -Wl,-soname,libgcj_bc.so.1 libgcj_bc/libgcj.so
-shared-libgcc
Although that code seems to be called for the biarch case only.
The ldd on libgcj.so shows the dependency on the real libgcj on the trunk, no
dependency with the code from the spec file.
Matthias
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28698