This is the mail archive of the java-patches@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]

Patch: don't test for data_start on cross builds.



I think the data_start hack was only necessary for a small number of
Linux systems (ppc and alpha I think).

Half of it was disabled for embedded cross tools.  This disables the
entire hack for cross builds.

2001-05-23  Anthony Green  <green@redhat.com>

	* configure: Rebuilt.
	* configure.in (NEEDS_DATA_START): Only define for native builds.

Index: configure.in
===================================================================
RCS file: /cvs/cvsfiles/devo/libjava/configure.in,v
retrieving revision 1.85
diff -u -p -r1.85 configure.in
--- configure.in	2001/05/15 01:31:32	1.85
+++ configure.in	2001/05/24 01:32:09
@@ -134,29 +134,44 @@ fi
 AC_LANG_RESTORE
 AC_MSG_RESULT($ac_exception_model_name)
 
-AC_MSG_CHECKING([for data_start])
 LIBDATASTARTSPEC=
 NEEDS_DATA_START=
-AC_TRY_LINK([extern int data_start;], [return ((int) &data_start);],
-  [AC_MSG_RESULT(found it)],
-  [LIBDATASTARTSPEC="-u data_start libgcjdata.a%s"
-   NEEDS_DATA_START=yes	
-   AC_MSG_RESULT(missing)])
+if test "$NATIVE" = yes; then
+  AC_MSG_CHECKING([for data_start])
+  AC_TRY_LINK([extern int data_start;], [return ((int) &data_start);],
+    [AC_MSG_RESULT(found it)],
+    [LIBDATASTARTSPEC="-u data_start libgcjdata.a%s"
+     NEEDS_DATA_START=yes	
+     AC_MSG_RESULT(missing)])
+fi
 AC_SUBST(LIBDATASTARTSPEC)
 
@@ -638,7 +651,7 @@ AM_CONDITIONAL(CANADIAN, test "$CANADIAN
 AM_CONDITIONAL(NULL_TARGET, test "$NULL_TARGET" = yes)
 AM_CONDITIONAL(NATIVE, test "$NATIVE" = yes || test "$NULL_TARGET" = yes)
 AM_CONDITIONAL(USE_LIBDIR, test -z "$with_cross_host")
-AM_CONDITIONAL(NEEDS_DATA_START, test "$NEEDS_DATA_START" = yes && test "$NATIVE" = yes)
+AM_CONDITIONAL(NEEDS_DATA_START, test "$NEEDS_DATA_START" = yes)
 AC_SUBST(GCC_UNWIND_INCLUDE)
 
 # Determine gcj version number.


AG



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