re PR bootstrap/17383 (Building in src dir fails)
2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * Makefile.def (target_modules): Remove "stage", now unnecessary. * Makefile.tpl (HOST_SUBDIR): New substitution. (STAGE_HOST_EXPORTS, EXPECT, HOST_LIB_PATH, USUAL_AR_FOR_TARGET, USUAL_AS_FOR_TARGET, USUAL_DLLTOOL_FOR_TARGET, USUAL_GCC_FOR_TARGET, USUAL_LD_FOR_TARGET, USUAL_NM_FOR_TARGET, USUAL_OBJDUMP_FOR_TARGET, USUAL_RANLIB_FOR_TARGET, USUAL_WINDRES_FOR_TARGET): Use it. (Host modules, Bootstrapped modules): Use it. (Build modules, Target modules): Do not create symlink trees, always configure out-of-srcdir. (distclean): Try removing $(host_subdir) with rm before using rm -rf. * configure.in (FLAGS_FOR_TARGET, CC_FOR_TARGET, GCJ_FOR_TARGET, GFORTRAN_FOR_TARGET, CXX_FOR_TARGET, RAW_CXX_FOR_TARGET): Use $(HOST_SUBDIR). Create a symlink for host_subdir. * Makefile.in: Regenerate. * configure: Regenerate. config: 2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * config/acx.m4 (GCC_TOPLEV_SUBDIRS): Set HOST_SUBDIR if an in-src gcc build is going. gcc: 2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * gcc/Makefile.in (host_subdir): New. (build_objdir): New. Replace ../$(build_subdir) with it throughout. * gcc/configure: Regenerate. libada: 2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * Makefile.in (GCC_DIR): Add $(HOST_SUBDIR) to the definition. libjava: 2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * configure.ac: Call GCC_TOPLEV_SUBDIRS. (COMPPATH): Removed. (ZIP, GCJH): Replace it with ../$(host_subdir). (built_gcc_dir): Add $(host_subdir). * configure: Regenerate. * Makefile.in, include/Makefile.in, testsuite/Makefile.in, gcj/Makefile.in, external/Makefile.in, external/sax/Makefile.in, external/w3c_dom/Makefile.in: Regenerate. libobjc: 2005-05-25 Paolo Bonzini <bonzini@gnu.org> PR bootstrap/17383 * configure.ac: Call GCC_TOPLEV_SUBDIRS. (Determine CFLAGS for gthread): Use $host_subdir. * configure: Regenerate. * Makefile.in (host_subdir): New. (INCLUDES): Use it. From-SVN: r95680
This commit is contained in:
parent
f51d6cb4ab
commit
215c351a82
27 changed files with 3431 additions and 3602 deletions
|
@ -5,6 +5,8 @@ AC_INIT([libjava], [version-unused],, [libjava])
|
|||
|
||||
AC_CONFIG_SRCDIR(java/lang/System.java)
|
||||
|
||||
GCC_TOPLEV_SUBDIRS
|
||||
|
||||
# We use these options to decide which functions to include.
|
||||
AC_ARG_WITH(target-subdir,
|
||||
AS_HELP_STRING([--with-target-subdir=SUBDIR],
|
||||
|
@ -162,13 +164,6 @@ AM_PROG_GCJ
|
|||
AM_PROG_CC_C_O
|
||||
AC_CONFIG_SUBDIRS(libltdl)
|
||||
|
||||
if test -z "$with_target_subdir" || test "$with_target_subdir" = "."; then
|
||||
COMPPATH=.
|
||||
else
|
||||
COMPPATH=..
|
||||
fi
|
||||
AC_SUBST(COMPPATH)
|
||||
|
||||
# The -no-testsuite modules omit the test subdir.
|
||||
AM_CONDITIONAL(TESTSUBDIR, test -d $srcdir/testsuite)
|
||||
|
||||
|
@ -1039,7 +1034,7 @@ NATIVE=yes
|
|||
|
||||
# Which gcj do we use?
|
||||
which_gcj=default
|
||||
built_gcc_dir="`cd ${builddotdot}/../../gcc && ${PWDCMD-pwd}`"
|
||||
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
|
||||
# use ac_exeext, because that is for the target platform.
|
||||
|
@ -1078,8 +1073,8 @@ fi
|
|||
case "${which_gcj}" in
|
||||
built)
|
||||
GCJ="$built_gcc_dir/gcj -B`${PWDCMD-pwd}`/ -B$built_gcc_dir/"
|
||||
GCJH='$(MULTIBUILDTOP)../$(COMPPATH)/gcc/gcjh'
|
||||
ZIP='$(MULTIBUILDTOP)../$(COMPPATH)/fastjar/fastjar'
|
||||
GCJH='$(MULTIBUILDTOP)../../$(host_subdir)/gcc/gcjh'
|
||||
ZIP='$(MULTIBUILDTOP)../../$(host_subdir)/fastjar/fastjar'
|
||||
;;
|
||||
cross)
|
||||
if test "x${with_newlib}" = "xyes"; then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue