From 5b28b6ef341a2b704ea5228c366f070889ca70ee Mon Sep 17 00:00:00 2001 From: Nathanael Nerode Date: Sat, 3 Jan 2004 18:24:38 +0000 Subject: PR bootstrap/11932, PR bootstrap/11933 (I don't know if it will fix either of them, but it relates to them.) * configure.in: Don't use shared config.cache for target directories. * configure: Regenerate. --- configure.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index d7b009c..8c0826f 100644 --- a/configure.in +++ b/configure.in @@ -1850,8 +1850,17 @@ if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib target_configargs="--with-newlib ${target_configargs}" fi +# Different target subdirs use different values of certain variables +# (notably CXX). Worse, multilibs use *lots* of different values. +# Worse yet, autoconf 2.5x makes some of these 'precious', meaning that +# it doesn't automatically accept command-line overrides of them. +# This means it's not safe for target subdirs to share a cache file, +# which is disgusting, but there you have it. Hopefully this can be +# fixed in future. It's still worthwhile to use a cache file for each +# directory. I think. + # Pass the appropriate --host, --build, and --cache-file arguments. -target_configargs="--cache-file=../config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}" +target_configargs="--cache-file=config.cache --host=${target_alias} --build=${build_alias} ${target_configargs}" # provide a proper gxx_include_dir. # Note, if you change the default, make sure to fix both here and in -- cgit v1.1