Patch: cross-compiling -vs- programs

Tom Tromey tromey@cygnus.com
Wed Oct 6 16:11:00 GMT 1999


I'm committing this patch.  It disables building the libjava programs
when cross-compiling.  This is broken, but we don't have a way to fix
it for real, right now.  This patch also fixes a bug when building a
Canadian cross.

1999-10-06  Tom Tromey  <tromey@cygnus.com>

	* configure.in (GCJ): Define as "target-gcj", not "target/gcj"
	when building Canadian cross.
	(NATIVE): Don't define when cross-compiling.

Tom

Index: configure.in
===================================================================
RCS file: /cvs/java/libgcj/libjava/configure.in,v
retrieving revision 1.36
diff -u -r1.36 configure.in
--- configure.in	1999/10/02 15:44:23	1.36
+++ configure.in	1999/10/06 23:09:44
@@ -271,6 +271,7 @@
 
 CANADIAN=no
 NULL_TARGET=no
+NATIVE=yes
 
 # Find eh-common.h and support headers.  If we're in the tree with
 # gcc, then look there.  Otherwise look in compat-include.  If all else
@@ -309,10 +310,11 @@
    if test "$build" != "$with_cross_host"; then
       CANADIAN=yes
       EH_COMMON_INCLUDE=
-      GCJ="${target_alias}/gcj"
+      GCJ="${target_alias}-gcj"
    else
       GCJ=
    fi
+   NATIVE=no
 else
    AC_CHECK_FUNCS(strerror ioctl select fstat open fsync sleep)
    AC_CHECK_FUNCS(gmtime_r localtime_r readdir_r getpwuid_r)
@@ -520,7 +522,7 @@
 
 AM_CONDITIONAL(CANADIAN, test "$CANADIAN" = yes)
 AM_CONDITIONAL(NULL_TARGET, test "$NULL_TARGET" = yes)
-AM_CONDITIONAL(NATIVE, test "$CANADIAN" = no || test "$NULL_TARGET" = yes)
+AM_CONDITIONAL(NATIVE, test "$NATIVE" = yes || test "$NULL_TARGET" = yes)
 AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host")
 AC_SUBST(EH_COMMON_INCLUDE)
 


More information about the Java-patches mailing list