This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]