Sign of success in cross compilation using GCJ!
Lincoln Spiteri
lincoln.spiteri@st.com
Tue Jul 27 02:35:00 GMT 1999
Hello,
I am pleased to report that I have managed to set up a gcj cross compiler. The
host is Red Hat linux 6.0 targeting Solaris 2.5.1.
I encountered some problems with the libjava Makefile most of which where
related to zlib. I have reported this mosly off list though. After manually
adding in the missing parameters in the Makefile libgcj could compile. It died
on a link however (undifined socket tyoe symbols) so I had to manualy add
-lsocket to the Makefile as well.
When compiling my program ( a simple TCP server ) the linker wanted -lzgcj and
-lsocket and finaly all went well. After copying the executable and gcj
libraries to the target machines I gave it a spin and all seems to work like a
charm.
Thank you Cygnus and all those who contribute to gcj! Next up SunOS4...
Regards
Lincoln (who has now got a warm fuzzy feeling inside)
--
------------------------------------------------------------------------------
Lincoln Spiteri
Manufacturing Systems
STMicroelectronics, Malta
e-mail: lincoln.spiteri@st.com
------------------------------------------------------------------------------
More information about the Java
mailing list