This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

java cross build patch



Please approve this patch for the trunk and 3.0 branch.
	
There are two simple changes in this patch.  The first tweaks the test
for canadian crosses.  This change is ripped out of the libstdc++
configure scripts.  bkoz made it look this way, and I'm sure he had a
good reason :-)

The second change removes the redefinition of GCJ for cross builds.
These lines prevent us from using GCJ_FOR_TARGET from the top level.
This is a change I wrote dating back to this top level change:
http://gcc.gnu.org/ml/gcc-patches/2001-02/msg00584.html 
...but forgot to submit.  It is necessary for cross builds.

BTW - I also missed one hunk when applying the above (approved) patch
to the trunk and will commit it right now.


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

	* configure: Rebuilt.
	* configure.in: Tweak canadian cross test, and don't redefine GCJ
	for cross builds.

Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/libjava/configure.in,v
retrieving revision 1.73.2.7
diff -u -p -p -r1.73.2.7 configure.in
--- configure.in	2001/05/14 17:45:15	1.73.2.7
+++ configure.in	2001/05/22 23:59:15
@@ -385,12 +385,10 @@ if test -n "${with_cross_host}"; then
 
    # If Canadian cross, then don't pick up tools from the build
    # directory.
-   if test "$build" != "$with_cross_host"; then
+   if test x"$build" != x"$with_cross_host" && x"$build" != x"$target"; then
       CANADIAN=yes
       GCC_UNWIND_INCLUDE=
       GCJ="${target_alias}-gcj"
-   else
-      GCJ=
    fi
    NATIVE=no
 else

[the configure patch is long and boring - AG]


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