This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: don't test for data_start on cross builds.
- To: java-patches at gcc dot gnu dot org
- Subject: Patch: don't test for data_start on cross builds.
- From: Anthony Green <green at redhat dot com>
- Date: Wed, 23 May 2001 18:36:14 -0700
- Reply-to: green at cygnus dot com
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