diff options
author | Paolo Bonzini <bonzini@gcc.gnu.org> | 2006-07-18 11:48:36 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2006-07-18 11:48:36 +0000 |
commit | 57255173dac51b82ac40d272a3b8dc82fd452413 (patch) | |
tree | a56aa5731a43b79c2fbeb7154a5d689a68dae271 /config | |
parent | 834c81642ad78338ac7048f4c183dc582bf7ca11 (diff) | |
download | gcc-57255173dac51b82ac40d272a3b8dc82fd452413.zip gcc-57255173dac51b82ac40d272a3b8dc82fd452413.tar.gz gcc-57255173dac51b82ac40d272a3b8dc82fd452413.tar.bz2 |
Makefile.tpl (configure-stageN-MODULE): Pass --with-build-libsubdir for stages after the first.
2006-07-18 Paolo Bonzini <bonzini@gnu.org>
* Makefile.tpl (configure-stageN-MODULE): Pass --with-build-libsubdir
for stages after the first.
config:
2006-07-18 Paolo Bonzini <bonzini@gnu.org>
* acx.m4: Support --with-build-libsubdir and AC_SUBST
build_libsubdir.
gcc:
2006-07-18 Paolo Bonzini <bonzini@gnu.org>
* configure: Regenerate.
* Makefile.in (build_libsubdir): New configure substitution
(build_libobjdir): New variable.
(BUILD_LIBIBERTY): Use it.
libgfortran:
2006-07-18 Paolo Bonzini <bonzini@gnu.org>
* configure: Regenerate.
libjava:
2006-07-18 Paolo Bonzini <bonzini@gnu.org>
* configure: Regenerate.
libobjc:
2006-07-18 Paolo Bonzini <bonzini@gnu.org>
* configure: Regenerate.
From-SVN: r115552
Diffstat (limited to 'config')
-rw-r--r-- | config/ChangeLog | 7 | ||||
-rw-r--r-- | config/acx.m4 | 15 |
2 files changed, 21 insertions, 1 deletions
diff --git a/config/ChangeLog b/config/ChangeLog index d5e0440..7aaf7ca 100644 --- a/config/ChangeLog +++ b/config/ChangeLog @@ -1,7 +1,12 @@ +2006-07-18 Paolo Bonzini <bonzini@gnu.org> + + * acx.m4: Support --with-build-libsubdir and AC_SUBST + build_libsubdir. + 2006-06-13 Richard Earnshaw <rearnsha@arm.com> Alexandre Oliva <aoliva@redhat.com> - * (ZW_GNU_GETTEXT_SISTER_DIR): Add optional + * gettext-sister.m4 (ZW_GNU_GETTEXT_SISTER_DIR): Add optional argument for where to search for NLS config file. 2006-05-31 Daniel Jacobowitz <dan@codesourcery.com> diff --git a/config/acx.m4 b/config/acx.m4 index 7c4c213..76456fb 100644 --- a/config/acx.m4 +++ b/config/acx.m4 @@ -74,8 +74,22 @@ dnl # amount to a lot more with autoconf 2.5x. AC_DEFUN([GCC_TOPLEV_SUBDIRS], [AC_REQUIRE([_GCC_TOPLEV_NONCANONICAL_TARGET]) []dnl AC_REQUIRE([_GCC_TOPLEV_NONCANONICAL_BUILD]) []dnl + +# post-stage1 host modules use a different CC_FOR_BUILD so, in order to +# have matching libraries, they should use host libraries: Makefile.tpl +# arranges to pass --with-build-libsubdir=$(HOST_SUBDIR). +# However, they still use the build modules, because the corresponding +# host modules (e.g. bison) are only built for the host when bootstrap +# finishes. So: +# - build_subdir is where we find build modules, and never changes. +# - build_libsubdir is where we find build libraries, and can be overridden. + # Prefix 'build-' so this never conflicts with target_subdir. build_subdir="build-${build_noncanonical}" +AC_ARG_WITH(build-libsubdir, +[ --with-build-libsubdir=[DIR] Directory where to find libraries for build system], +build_libsubdir="$withval", +build_libsubdir="$build_subdir") # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories if ( test $srcdir = . && test -d gcc ) \ || test -d $srcdir/../host-${host_noncanonical}; then @@ -85,6 +99,7 @@ else fi # No prefix. target_subdir=${target_noncanonical} +AC_SUBST([build_libsubdir]) []dnl AC_SUBST([build_subdir]) []dnl AC_SUBST([host_subdir]) []dnl AC_SUBST([target_subdir]) []dnl |