gcj crosscompiler
Taras
taras.judge@shaw.ca
Sat Jul 26 23:35:00 GMT 2003
Hi,
I've sortof-successfully used Mohan's gcj 3.4 stuff to build my app on
windows. It builds, but strangely doesn't run on the machine that builds it
:)
Oh well, run's well everywhere else.
So I've been trying to setup my own crosscompiler. I used Mohan's
hints/patches to compile the latest gcc cvs.
I used the following command.
echo $TARGET $BUILD
mingw32 i686-pc-linux-gnu
$GCC_SRC_DIR/configure --disable-shared --enable-libgcj --prefix=$PREFIX
--build=$BUILD --host=$HOST --target=$TARGET --disable-nls
--disable-shared --disable-debug --enable-threads=win32 --with-gcc
--with-gnu-as --with-gnu-ld ; make BOOT_CFLAGS='-O2 -pipe -g0'
CFLAGS='-O2 -pipe -g0' CXXFLAGS='-O2 -pipe -g0' LIBCFLAGS='-O2 -pipe -g0'
LIBCXXFLAGS='-O2 -pipe -g0 -fno-implicit-templates' DEBUG_FLAGS='-g0'
LIBGCC2_DEBUG_CFLAGS='-g0' JCFLAGS='-pipe -g0' GCJFLAGS='-O2 -pipe -g0'
LIBGCJ_CFLAGS='-O2 -pipe -g0' LIBGCJ_CXXFLAGS='-O2 -pipe -g0
-fno-implicit-templates' LDFLAGS='-s' -j2
More information about the Java
mailing list