help building custom libgcj

Martin Egholm Nielsen martin@egholm-nielsen.dk
Fri Jul 9 09:49:00 GMT 2004


>>>>Now I want to re-make only the libgcj, but without AWT, GTK, or
>>>>X, and with DEBUG.
>>Will this make libgcj.so without awt, gtk, and X, as well, or what
>>does these options apply to?
>>I've just tried passing these options to the Crosstool build
>>scripts via the GCC_EXTRA_CONFIG, but the resulting libgcj.so.5.0.0
>>is still around 50megs, and the libgcj.jar still contains awt
>>packages...
> You want to use strip on libgcj.so.5.0.0. This removes the debug 
> symbols.
Sure... But how do I configure the build scripts to build libgcj.so with 
optimisation-level "-Os"?
> There is no configure options to not include AWT in libgcj, only the 
> GTK and Xlib can be disabled.
Bummer, I just hoped the parameter "--enable-java-awt=no" on
the gcc-3.4.1/libjava/configure script would do just that...
So to rip up an old thread (though never finished?!):
In order to avoid building, say, awt, one should modify 
"gcc-3.4.1/libjava/Makefile.(am|in)" and strip away all references to 
"awt_java_source_files"?
Or is there a better way to do it?
Regards,
 Martin Egholm


More information about the Java mailing list

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