This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libgcj/28698] [gcj] libgcj-bc only used when building shared libs, not executables



------- Comment #2 from doko at ubuntu dot com  2006-08-17 22:40 -------
ecj.jar is from eclipse-3.2, copied the file to
http://people.ubuntu.com/~doko/ecj.jar

gcj-4.2 -v \
            -O2 -g -Wl,-Bsymbolic -shared -fPIC -fjni -findirect-dispatch \
            -o /tmp/ecj.jar.so /usr/share/java/ecj.jar
Using built-in specs.
Reading specs from /usr/lib/gcc/i486-linux-gnu/4.2.0/libgcj.spec
[...]
gcc version 4.2.0 20060817 (experimental) (Ubuntu 4.2-20060817-0ubuntu1)

gcj-4.2 -v \
            -O2 -g -Wl,-Bsymbolic -fPIC -fjni -findirect-dispatch \
            --main=org.eclipse.jdt.internal.compiler.batch.Main \
            -o /tmp/ecj /usr/share/java/ecj.jar
Using built-in specs.
Reading specs from /usr/lib/gcc/i486-linux-gnu/4.2.0/libgcj.spec
[...]

objdump -x /tmp/ecj.jar.so | grep NEEDED
  NEEDED      libgcc_s.so.1
  NEEDED      libgcj_bc.so.1
  NEEDED      libm.so.6
  NEEDED      libpthread.so.0
  NEEDED      librt.so.1
  NEEDED      libz.so.1
  NEEDED      libdl.so.2
  NEEDED      libc.so.6
objdump -x /tmp/ecj | grep NEEDED
  NEEDED      libgcc_s.so.1
  NEEDED      libgcj_bc.so.1
  NEEDED      libm.so.6
  NEEDED      libpthread.so.0
  NEEDED      librt.so.1
  NEEDED      libz.so.1
  NEEDED      libdl.so.2
  NEEDED      libc.so.6
  NEEDED      libgcj.so.8


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28698


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]