This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
gcj crosscompiler
- From: Taras <taras dot judge at shaw dot ca>
- To: java at gcc dot gnu dot org
- Date: Sat, 26 Jul 2003 16:29:56 -0700
- Subject: gcj crosscompiler
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