This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: [gcj-eclipse-merge-branch] fix cross-build configury/makery
- From: Andrew Haley <aph at redhat dot com>
- To: Adam Megacz <adam at megacz dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: Tue, 5 Dec 2006 10:20:55 +0000
- Subject: Re: [gcj-eclipse-merge-branch] fix cross-build configury/makery
- References: <x37ix6anbh.fsf@nowhere.com>
Adam Megacz writes:
>
> ok to commit?
>
> - a
>
> 2006-12-04 Adam Megacz <megacz@cs.berkeley.edu>
>
> * Makefile.am: add libgcj-$(gcc_version).jar to -fclasspath=
> * configure.ac: change settings for GCJ and GCJFLAGS to fix
> cross-builds
>
> Index: Makefile.am
> ===================================================================
> --- Makefile.am (revision 119526)
> +++ Makefile.am (working copy)
> @@ -139,7 +139,7 @@
>
> AM_GCJFLAGS = \
> @LIBGCJ_JAVAFLAGS@ \
> - -fclasspath= -fbootclasspath=$(BOOTCLASSPATH) \
> + -fclasspath=libgcj-$(gcc_version).jar -fbootclasspath=$(BOOTCLASSPATH) \
> --encoding=UTF-8 \
> -Wno-deprecated -fbootstrap-classes
>
> Index: configure.ac
> ===================================================================
> --- configure.ac (revision 119526)
> +++ configure.ac (working copy)
> @@ -355,14 +355,16 @@
> if test "x${with_newlib}" = "xyes"; then
> # FIXME (comment): Why is this needed?
> GCC_UNWIND_INCLUDE=
> - GCJ="${target_noncanonical}-gcj"
> + GCJ="$built_gcc_dir/${target_noncanonical}-gcj"
This change shouldn't be necessary. I think it's related to a bug
that tromey is working on.
Andrew.
> else
> - GCJ="${target_noncanonical}-gcj -B`${PWDCMD-pwd}`/"
> + GCJ="$built_gcc_dir/${target_noncanonical}-gcj"
> + GCJFLAGS="-B$built_gcc_dir/ $GCJFLAGS"
> fi
> GCJH='$(target_noncanonical)-gcjh'
> ;;
> path)
> - GCJ="gcj -B`${PWDCMD-pwd}`/"
> + GCJ="$built_gcc_dir/gcj"
> + GCJFLAGS="-B$built_gcc_dir/ $GCJFLAGS"
> GCJH=gcjh
> ;;
> esac