This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: java/5688: cross compiler build fails in libjava
- From: Alexandre Oliva <aoliva at redhat dot com>
- To: "H . J . Lu" <hjl at lucon dot org>
- Cc: Geoff Keating <geoffk at geoffk dot org>, tromey at redhat dot com, pb at nexus dot co dot uk, gcc-bugs at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: 04 Jun 2002 16:03:56 -0300
- Subject: Re: java/5688: cross compiler build fails in libjava
- Organization: GCC Team, Red Hat
- References: <3CFA6F73.8070107@lucon.org> <878z5xclb2.fsf@creche.redhat.com><20020602200900.A15323@lucon.org> <87y9dwbdb5.fsf@creche.redhat.com><jmwutguz2m.fsf@desire.geoffk.org> <20020603133218.A31454@lucon.org>
On Jun 3, 2002, "H . J . Lu" <hjl@lucon.org> wrote:
> + if test x$build = x$host && test x$host = x$target; then
> + AC_CHECK_FILES(/proc/self/exe, [
> + AC_DEFINE(HAVE_PROC_SELF_EXE)])
> + else
> + case $target in
> + *-linux*)
> + AC_DEFINE(HAVE_PROC_SELF_EXE)
> + ;;
> + esac
One more nit: I wonder if, in the `else' branch, if $target doesn't
match, we should assume HAVE_PROC_SELF_EXE is not present, or bail out
asking the user to let us know by setting some environment variable.
--
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 Professional serial bug killer