public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* PR libgcj/40868 - ecjx should be build with host compiler
@ 2010-08-12 17:41 Dmitrijs Ledkovs
  2010-08-13  9:24 ` Andrew Haley
  0 siblings, 1 reply; 16+ messages in thread
From: Dmitrijs Ledkovs @ 2010-08-12 17:41 UTC (permalink / raw)
  To: gcc-patches; +Cc: java-patches, tromey

[-- Attachment #1: Type: text/plain, Size: 357 bytes --]

This is a new attempt at the PR libgcj/40868 [1].

This time around a compiler variable is introduced in configure.ac and
Makefile.am is patched as well.

This has been tested with build/host=linux-gnu target=i686-w64-mingw32.
This has not been tested with a canadian-cross but "it should just work".

[1] http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40868


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: ecjx.patch --]
[-- Type: text/x-diff, Size: 1931 bytes --]

From 8f20bb45ffebbd2cdf4cfc640624a371851fce2b Mon Sep 17 00:00:00 2001
From: Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>
Date: Wed, 7 Jul 2010 15:57:56 +0100
Subject: [PATCH 2/2] 2010-07-25  Dmitrijs Ledkovs  <dmitrij.ledkov@ubuntu.com>

	PR libgcj/40868
	* configure.ac: add GCC_FOR_ECJX variable
	* Makefile.am: use GCC_FOR_ECJX compiler to compile ecjx.o
	* Makefile.in: Regenerate.
	* configure: Regenerate.
	* gcj/Makefile.in: Regenerate.
	* include/Makefile.in: Regenerate.
	* testsuite/Makefile.in: Regenerate.
---
 libjava/Makefile.am  |    2 +-
 libjava/configure.ac |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/libjava/Makefile.am b/libjava/Makefile.am
index 7b67ed0..8930903 100644
--- a/libjava/Makefile.am
+++ b/libjava/Makefile.am
@@ -1161,7 +1161,7 @@ endif
 
 else !NATIVE
 
-ecjx_LINK = $(GCJ_FOR_ECJX_LINK) $(ecjx_LDFLAGS)
+ecjx_LINK = $(GCC_FOR_ECJX) -c -o $(am_ecjx_OBJECTS) $(top_srcdir)/$(ecjx_SOURCES) && $(GCJ_FOR_ECJX_LINK) $(ecjx_LDFLAGS)
 ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR)
 ecjx_LDADD = 
 ecjx_DEPENDENCIES = 
diff --git a/libjava/configure.ac b/libjava/configure.ac
index 125e9ce..06e6f96 100644
--- a/libjava/configure.ac
+++ b/libjava/configure.ac
@@ -395,6 +395,7 @@ NATIVE=yes
 which_gcj=default
 host_exeext=${ac_exeext}
 GCJ_FOR_ECJX=
+GCC_FOR_ECJX=
 built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
 if test -n "${with_cross_host}"; then
   # We are being configured with a cross compiler. We can't
@@ -402,6 +403,7 @@ if test -n "${with_cross_host}"; then
   NATIVE=no
   cross_host_exeext=
   GCJ_FOR_ECJX="${with_cross_host}-gcj"
+  GCC_FOR_ECJX="${with_cross_host}-gcc"
   case "${with_cross_host}" in
      *mingw* | *cygwin*)
          cross_host_exeext=.exe
@@ -467,6 +469,7 @@ JAVAC="$GCJ -C"
 export JAVAC
 
 AC_SUBST(GCJ_FOR_ECJX)
+AC_SUBST(GCC_FOR_ECJX)
 AC_SUBST(GCJH)
 AC_SUBST(host_exeext)
 
-- 
1.7.0.4


^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2010-08-26 19:59 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-12 17:41 PR libgcj/40868 - ecjx should be build with host compiler Dmitrijs Ledkovs
2010-08-13  9:24 ` Andrew Haley
2010-08-16  0:11   ` Dmitrijs Ledkovs
2010-08-16  9:31     ` Andrew Haley
2010-08-16  9:41     ` Andrew Haley
2010-08-16 19:03       ` Ralf Wildenhues
2010-08-17 13:32         ` Dmitrijs Ledkovs
2010-08-17 19:02           ` Ralf Wildenhues
2010-08-17 20:36             ` Dmitrijs Ledkovs
2010-08-17 22:55             ` Dave Korn
2010-08-26 15:03             ` Dmitrijs Ledkovs
2010-08-26 19:15               ` Ralf Wildenhues
2010-08-26 19:52                 ` Tom Tromey
2010-08-26 21:34                 ` Dmitrijs Ledkovs
2010-08-16 21:13       ` Tom Tromey
2010-08-17 14:14         ` Dmitrijs Ledkovs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).