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]

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


On May 23, 2001, Anthony Green <green@redhat.com> wrote:

> +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

Make sure you set it to no if the test fails or if it isn't done,
otherwise you might accidentally get something from the user's
environment.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


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