static gcj ant

Dhek Bhun Kho bhun@chello.nl
Thu Jan 16 12:14:00 GMT 2003


Op do 16-01-2003, om 03:23 schreef Adam Megacz:
> Were you able to get gcj to compile ant? What tweaks did this require?
> I tried a few times about six months ago and couldn't get it to work.
In the end I used the attached script to compile the filtered classes
and performed the linking manually. 
(gcj -o ant -static objects/*.o) the binary is compiled -Os, but this is
senseless, if I recompile it with -O0 it cuts down to 9 MB stripped, but
I have to do more testing with the tasks, just not enough time for it.
If you try it out (using the binary I linked) get the 2.2.5 version. The
2.3.1 version won't run on RH73/80. 
I had a working directory like work/, with subdirectories work/sources
and work/objects, the work/sources contained toplevel directories for
each package, e.g. work/sources/org.apache.regexp or
work/sources/org.apache.tools , each containing the whole
org/apache/xx/..*.java tree for it's package, every object gets dumped
into the objects/ directory. The static linkage must be specified using
*.o instead of a linkage with .a because some classes won't get resolved
and included into the binary. At first what most bugged me was that the
documentation doesn't make it clear that you have to exclude a
preleading / character from the --resource <resource> parameter. But
after that it all went ok.
Seems to work fine, I am going to test a bigger series of chained xml
scripts this weekend. Currently trying to compile tomcat statically, but
this may not be feasible.
-- 
Dhek Bhun Kho <bhun@chello.nl>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compile
Type: text/x-sh
Size: 3027 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/java/attachments/20030116/66ad2cb6/attachment.bin>


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /