Commit 9f8f1def by Dmitrijs Ledkovs Committed by Ralf Wildenhues

Fix building ecjx in cross compile mode.

libjava/:
	PR libgcj/40868
	* configure.ac: Add GCC_FOR_ECJX variable.  Ensure
	GCJ_FOR_ECJX is always set.
	* Makefile.am [!NATIVE] (ecjx.$(OBJEXT)): New rule.
	* Makefile.in: Regenerate.
	* configure: Regenerate.
	* gcj/Makefile.in: Regenerate.
	* include/Makefile.in: Regenerate.
	* testsuite/Makefile.in: Regenerate.

Co-Authored-By: Ralf Wildenhues <Ralf.Wildenhues@gmx.de>

From-SVN: r163580
parent a703b0c0
2010-08-27 Dmitrijs Ledkovs <dmitrij.ledkov@ubuntu.com>
Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
PR libgcj/40868
* configure.ac: Add GCC_FOR_ECJX variable. Ensure
GCJ_FOR_ECJX is always set.
* Makefile.am [!NATIVE] (ecjx.$(OBJEXT)): New rule.
* Makefile.in: Regenerate.
* configure: Regenerate.
* gcj/Makefile.in: Regenerate.
* include/Makefile.in: Regenerate.
* testsuite/Makefile.in: Regenerate.
2010-08-18 Jack Howarth <howarth@bromo.med.uc.edu> 2010-08-18 Jack Howarth <howarth@bromo.med.uc.edu>
* libjava/configure.ac (THREADLIBS): Don't set on Darwin. * libjava/configure.ac (THREADLIBS): Don't set on Darwin.
......
...@@ -1170,6 +1170,8 @@ ecjx_LINK = $(GCJ_FOR_ECJX_LINK) $(ecjx_LDFLAGS) ...@@ -1170,6 +1170,8 @@ ecjx_LINK = $(GCJ_FOR_ECJX_LINK) $(ecjx_LDFLAGS)
ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR) ecjx_LDFLAGS = $(ECJX_BASE_FLAGS) $(ECJ_BUILD_JAR)
ecjx_LDADD = ecjx_LDADD =
ecjx_DEPENDENCIES = ecjx_DEPENDENCIES =
ecjx.$(OBJEXT): ecjx.cc
$(GCC_FOR_ECJX) -c $<
endif !NATIVE endif !NATIVE
......
...@@ -550,6 +550,7 @@ EGREP = @EGREP@ ...@@ -550,6 +550,7 @@ EGREP = @EGREP@
EXCEPTIONSPEC = @EXCEPTIONSPEC@ EXCEPTIONSPEC = @EXCEPTIONSPEC@
EXEEXT = @EXEEXT@ EXEEXT = @EXEEXT@
FGREP = @FGREP@ FGREP = @FGREP@
GCC_FOR_ECJX = @GCC_FOR_ECJX@
GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@ GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@
GCDEPS = @GCDEPS@ GCDEPS = @GCDEPS@
GCINCS = @GCINCS@ GCINCS = @GCINCS@
...@@ -12632,6 +12633,8 @@ write-entries-to-file-check: ...@@ -12632,6 +12633,8 @@ write-entries-to-file-check:
@MAINTAINER_MODE_TRUE@@NATIVE_TRUE@ | sed -n -e 's|0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\1, 0x\2, \3) /*\4 */|p' \ @MAINTAINER_MODE_TRUE@@NATIVE_TRUE@ | sed -n -e 's|0x\(..\)\(..\).*\(0x....\).*#\(.*\)$$|MAP(0x\1, 0x\2, \3) /*\4 */|p' \
@MAINTAINER_MODE_TRUE@@NATIVE_TRUE@ >> tmp-0212; \ @MAINTAINER_MODE_TRUE@@NATIVE_TRUE@ >> tmp-0212; \
@MAINTAINER_MODE_TRUE@@NATIVE_TRUE@ mv tmp-0212 $(srcdir)/gnu/gcj/convert/JIS0212.h @MAINTAINER_MODE_TRUE@@NATIVE_TRUE@ mv tmp-0212 $(srcdir)/gnu/gcj/convert/JIS0212.h
@NATIVE_FALSE@ecjx.$(OBJEXT): ecjx.cc
@NATIVE_FALSE@ $(GCC_FOR_ECJX) -c $<
src.zip: src.zip:
-rm -f src.zip -rm -f src.zip
......
...@@ -773,6 +773,7 @@ LIBLTDL ...@@ -773,6 +773,7 @@ LIBLTDL
INCLTDL INCLTDL
host_exeext host_exeext
GCJH GCJH
GCC_FOR_ECJX
GCJ_FOR_ECJX GCJ_FOR_ECJX
X_AWT_FALSE X_AWT_FALSE
X_AWT_TRUE X_AWT_TRUE
...@@ -6703,7 +6704,8 @@ NATIVE=yes ...@@ -6703,7 +6704,8 @@ NATIVE=yes
# Which gcj and host gcj (for ecjx) do we use? # Which gcj and host gcj (for ecjx) do we use?
which_gcj=default which_gcj=default
host_exeext=${ac_exeext} host_exeext=${ac_exeext}
GCJ_FOR_ECJX= GCJ_FOR_ECJX='$(GCJ)'
GCC_FOR_ECJX='$(CXX)'
built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`" built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
if test -n "${with_cross_host}"; then if test -n "${with_cross_host}"; then
# We are being configured with a cross compiler. We can't # We are being configured with a cross compiler. We can't
...@@ -6711,6 +6713,7 @@ if test -n "${with_cross_host}"; then ...@@ -6711,6 +6713,7 @@ if test -n "${with_cross_host}"; then
NATIVE=no NATIVE=no
cross_host_exeext= cross_host_exeext=
GCJ_FOR_ECJX="${with_cross_host}-gcj" GCJ_FOR_ECJX="${with_cross_host}-gcj"
GCC_FOR_ECJX="${with_cross_host}-gcc"
case "${with_cross_host}" in case "${with_cross_host}" in
*mingw* | *cygwin*) *mingw* | *cygwin*)
cross_host_exeext=.exe cross_host_exeext=.exe
...@@ -6779,6 +6782,7 @@ export JAVAC ...@@ -6779,6 +6782,7 @@ export JAVAC
# Create it, so that compile/link tests don't fail # Create it, so that compile/link tests don't fail
test -f libgcj.spec || touch libgcj.spec test -f libgcj.spec || touch libgcj.spec
...@@ -13349,7 +13353,7 @@ else ...@@ -13349,7 +13353,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 13352 "configure" #line 13356 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
...@@ -13455,7 +13459,7 @@ else ...@@ -13455,7 +13459,7 @@ else
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<_LT_EOF cat > conftest.$ac_ext <<_LT_EOF
#line 13458 "configure" #line 13462 "configure"
#include "confdefs.h" #include "confdefs.h"
#if HAVE_DLFCN_H #if HAVE_DLFCN_H
...@@ -19434,7 +19438,7 @@ if test "${enable_sjlj_exceptions+set}" = set; then : ...@@ -19434,7 +19438,7 @@ if test "${enable_sjlj_exceptions+set}" = set; then :
enableval=$enable_sjlj_exceptions; : enableval=$enable_sjlj_exceptions; :
else else
cat > conftest.$ac_ext << EOF cat > conftest.$ac_ext << EOF
#line 19437 "configure" #line 19441 "configure"
struct S { ~S(); }; struct S { ~S(); };
void bar(); void bar();
void foo() void foo()
......
...@@ -394,7 +394,8 @@ NATIVE=yes ...@@ -394,7 +394,8 @@ NATIVE=yes
# Which gcj and host gcj (for ecjx) do we use? # Which gcj and host gcj (for ecjx) do we use?
which_gcj=default which_gcj=default
host_exeext=${ac_exeext} host_exeext=${ac_exeext}
GCJ_FOR_ECJX= GCJ_FOR_ECJX='$(GCJ)'
GCC_FOR_ECJX='$(CXX)'
built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`" built_gcc_dir="`cd ${builddotdot}/../../${host_subdir}/gcc && ${PWDCMD-pwd}`"
if test -n "${with_cross_host}"; then if test -n "${with_cross_host}"; then
# We are being configured with a cross compiler. We can't # We are being configured with a cross compiler. We can't
...@@ -402,6 +403,7 @@ if test -n "${with_cross_host}"; then ...@@ -402,6 +403,7 @@ if test -n "${with_cross_host}"; then
NATIVE=no NATIVE=no
cross_host_exeext= cross_host_exeext=
GCJ_FOR_ECJX="${with_cross_host}-gcj" GCJ_FOR_ECJX="${with_cross_host}-gcj"
GCC_FOR_ECJX="${with_cross_host}-gcc"
case "${with_cross_host}" in case "${with_cross_host}" in
*mingw* | *cygwin*) *mingw* | *cygwin*)
cross_host_exeext=.exe cross_host_exeext=.exe
...@@ -467,6 +469,7 @@ JAVAC="$GCJ -C" ...@@ -467,6 +469,7 @@ JAVAC="$GCJ -C"
export JAVAC export JAVAC
AC_SUBST(GCJ_FOR_ECJX) AC_SUBST(GCJ_FOR_ECJX)
AC_SUBST(GCC_FOR_ECJX)
AC_SUBST(GCJH) AC_SUBST(GCJH)
AC_SUBST(host_exeext) AC_SUBST(host_exeext)
......
...@@ -133,6 +133,7 @@ EGREP = @EGREP@ ...@@ -133,6 +133,7 @@ EGREP = @EGREP@
EXCEPTIONSPEC = @EXCEPTIONSPEC@ EXCEPTIONSPEC = @EXCEPTIONSPEC@
EXEEXT = @EXEEXT@ EXEEXT = @EXEEXT@
FGREP = @FGREP@ FGREP = @FGREP@
GCC_FOR_ECJX = @GCC_FOR_ECJX@
GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@ GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@
GCDEPS = @GCDEPS@ GCDEPS = @GCDEPS@
GCINCS = @GCINCS@ GCINCS = @GCINCS@
......
...@@ -134,6 +134,7 @@ EGREP = @EGREP@ ...@@ -134,6 +134,7 @@ EGREP = @EGREP@
EXCEPTIONSPEC = @EXCEPTIONSPEC@ EXCEPTIONSPEC = @EXCEPTIONSPEC@
EXEEXT = @EXEEXT@ EXEEXT = @EXEEXT@
FGREP = @FGREP@ FGREP = @FGREP@
GCC_FOR_ECJX = @GCC_FOR_ECJX@
GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@ GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@
GCDEPS = @GCDEPS@ GCDEPS = @GCDEPS@
GCINCS = @GCINCS@ GCINCS = @GCINCS@
......
...@@ -109,6 +109,7 @@ EGREP = @EGREP@ ...@@ -109,6 +109,7 @@ EGREP = @EGREP@
EXCEPTIONSPEC = @EXCEPTIONSPEC@ EXCEPTIONSPEC = @EXCEPTIONSPEC@
EXEEXT = @EXEEXT@ EXEEXT = @EXEEXT@
FGREP = @FGREP@ FGREP = @FGREP@
GCC_FOR_ECJX = @GCC_FOR_ECJX@
GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@ GCC_UNWIND_INCLUDE = @GCC_UNWIND_INCLUDE@
GCDEPS = @GCDEPS@ GCDEPS = @GCDEPS@
GCINCS = @GCINCS@ GCINCS = @GCINCS@
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment