public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug libgcj/28698]  New: [gcj] libgcj-bc only used when building shared libs, not executables
@ 2006-08-11 13:04 debian-gcc at lists dot debian dot org
  2006-08-17  1:24 ` [Bug libgcj/28698] " tromey at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: debian-gcc at lists dot debian dot org @ 2006-08-11 13:04 UTC (permalink / raw)
  To: java-prs

seen on redhat/gcc-4_1-branch, should be seen on upcoming classpath-0.92 merge
as well.

building a shared library avoids the direct dependency on libgcj.so.7 (only
libgcj_gc.so.1 is referenced as NEEDED). 

i.e. gcj \
            -O2 -g -Wl,-Bsymbolic -shared -fPIC -fjni -findirect-dispatch \
            -o build/dist/ecj.jar.so build/dist/ecj.jar

ecj.jar.so doesn't depend on libgcj.so.7, while building an executable, i.e.

gcj \
           -O2 -g -Wl,-Bsymbolic -fPIC -fjni -findirect-dispatch \
           --main=org.eclipse.jdt.internal.compiler.batch.Main \
           -o build/dist/ecj-bootstrap-gcj build/dist/ecj.jar

still has the dependency on libgcj.so.7.

using the latter compiler is still faster than starting the interpreter and
using the precompiled jar file.

libjava/libgcj.spec does only rename the spec for linking shared libs, not for
linking executables.

  Matthias


-- 
           Summary: [gcj] libgcj-bc only used when building shared libs, not
                    executables
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libgcj
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: debian-gcc at lists dot debian dot org


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


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-09-01 16:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-11 13:04 [Bug libgcj/28698] New: [gcj] libgcj-bc only used when building shared libs, not executables debian-gcc at lists dot debian dot org
2006-08-17  1:24 ` [Bug libgcj/28698] " tromey at gcc dot gnu dot org
2006-08-17 22:40 ` doko at ubuntu dot com
2006-08-18 11:38 ` doko at ubuntu dot com
2006-08-22 23:34 ` tromey at gcc dot gnu dot org
2006-08-22 23:45 ` bryce at mckinlay dot net dot nz
2006-08-23  9:20 ` debian-gcc at lists dot debian dot org
2006-08-23 16:58 ` tromey at gcc dot gnu dot org
2006-08-31 17:24 ` tromey at gcc dot gnu dot org
2006-08-31 22:00 ` tromey at gcc dot gnu dot org
2006-09-01 16:16 ` tromey at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).