]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* configure.ac (build_configargs): Don't share config.cache between
authorhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Oct 2014 14:30:35 +0000 (14:30 +0000)
committerhp <hp@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Oct 2014 14:30:35 +0000 (14:30 +0000)
build subdirs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@216669 138bc75d-0d04-0410-961f-82ee72b054a4

ChangeLog
configure
configure.ac

index df8cd6f8f1364bbee0ec647bec3fabc406a2867d..5d0b6b1e234a2032ee11222603938b3455af7ad2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-10-24  Hans-Peter Nilsson  <hp@dummer.localdomain>
+
+       * configure.ac (build_configargs): Don't share config.cache between
+       build subdirs.
+
 2014-10-24  Daniel Hellstrom  <daniel@gaisler.com>
 
        * config.gcc (sparc*-*-*): Accept mcpu=leon3v7 processor.
index ce984b1f52891f51e9f00e8a805da98d05b6693d..a8f1b8cec586e5f77c023dc7adc808cdf0a4a5b9 100755 (executable)
--- a/configure
+++ b/configure
@@ -7386,8 +7386,10 @@ tbaseargs="$tbaseargs --disable-option-checking"
 
 # For the build-side libraries, we just need to pretend we're native,
 # and not use the same cache file.  Multilibs are neither needed nor
-# desired.
-build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
+# desired.  We can't even use the same cache file for all build-side
+# libraries, as they're compiled differently; some with C, some with
+# C++ or with different feature-enabling options.
+build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
 
 # For host modules, accept cache file option, or specification as blank.
 case "${cache_file}" in
index abfd038fa0b249d22f0b13b385706b699e00513b..573109277ae6b5d3af5bae3d9352aac522b41665 100644 (file)
@@ -2922,8 +2922,10 @@ AC_ARG_VAR([target_configargs],
 
 # For the build-side libraries, we just need to pretend we're native,
 # and not use the same cache file.  Multilibs are neither needed nor
-# desired.
-build_configargs="$build_configargs --cache-file=../config.cache ${baseargs}"
+# desired.  We can't even use the same cache file for all build-side
+# libraries, as they're compiled differently; some with C, some with
+# C++ or with different feature-enabling options.
+build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
 
 # For host modules, accept cache file option, or specification as blank.
 case "${cache_file}" in