help building custom libgcj
Michael Koch
konqueror@gmx.de
Fri Jul 9 10:02:00 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am Freitag, 9. Juli 2004 11:49 schrieb Martin Egholm Nielsen:
> >>>>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"?
Build with "make GCJFLAGS=-Os CFLAGS=-Os CXXFLAGS=-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"?
This will not work as some AWT classes are referenced from outside
AWT. AWTException comes to my mind ...
> Or is there a better way to do it?
Not yet.
Michael
- --
Homepage: http://www.worldforge.org/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFA7m2zWSOgCCdjSDsRAvt8AJ9XJ/JJkkIquJP1DGWD/nLFnC0fuQCcDHcG
X1ESLqNdBbMn0bNFcHVCEpg=
=Z9+R
-----END PGP SIGNATURE-----
More information about the Java
mailing list