This is the mail archive of the
java-discuss@sources.redhat.com
mailing list for the Java project.
RE: generating shared libs
- To: "'tromey at redhat dot com'" <tromey at redhat dot com>, "Immanuel, Gidado-Yisa" <avm3 at cdc dot gov>
- Subject: RE: generating shared libs
- From: Anthony Green <green at redhat dot com>
- Date: Sat, 23 Dec 2000 06:23:22 -0800
- Cc: "'java-discuss at sources dot redhat dot com'" <java-discuss at sources dot redhat dot com>
- Organization: Red Hat, Inc.
- Reply-To: "green at cygnus dot com" <green at cygnus dot com>
On Friday, December 22, 2000 11:23 PM, Tom Tromey [SMTP:tromey@redhat.com]
wrote:
> I think you can compile jar files directly. However, I've never done
> it (and to me it seems a bit amazing :-). Maybe something like this
> would work?
>
> gcc -fPIC -shared -o libmystuff.so mystuff.jar
Only if it is uncompressed. gcj can find class files and refer to them in
compressed jar files, but it cannot compile compressed jar files directly. The
fix is pretty straight forward, but it means rewriting several chunks of jc1
related to zip archive directories and such.
I suggest extracting the class files from the jar and compiling them
individually.
AG