[Bug libgcj/28698] [gcj] libgcj-bc only used when building shared libs, not executables
tromey at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Aug 17 01:24:00 GMT 2006
------- Comment #1 from tromey at gcc dot gnu dot org 2006-08-17 01:24 -------
For a simple example it does not do this:
opsy. gcj -O2 -fPIC -fjni -findirect-dispatch -o H --main=HelloWorld
HelloWorld.class
opsy. eu-readelf -d H|fgrep lib
NEEDED Shared library: [libgcc_s.so.1]
NEEDED Shared library: [libgcj_bc.so.1]
NEEDED Shared library: [libm.so.6]
NEEDED Shared library: [libpthread.so.0]
NEEDED Shared library: [librt.so.1]
NEEDED Shared library: [libdl.so.2]
NEEDED Shared library: [libc.so.6]
I wonder if something else is going on here... maybe some optimization
is generating a symbol that necessitates pulling in libgcj itself?
(I'm thinking of the builtins ... though I thought Andrew fixed these.
So, maybe that is wrong.)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28698
More information about the Java-prs
mailing list