summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormartin <martin@NetBSD.org>2005-11-18 08:57:04 +0000
committermartin <martin@NetBSD.org>2005-11-18 08:57:04 +0000
commiteaaec6f3bfb1583ff02704b363403f00d3ecf376 (patch)
treea952355964315f5ff9e28723dc7c3ed3445f3818
parent428522929f1cd6263399f7693f4248863a199cbe (diff)
As Richard Earnshaw put it: "with_cpu is a property of the target."
Reset it to the default (command line dependend) before each turn of "config.gcc", so each invocation gets a clean state and only the changes from the last round persist. This fixes the build of a sparc toolchain on a sparc64 host.
-rw-r--r--gnu/dist/gcc/gcc/configure.in2
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/dist/gcc/gcc/configure.in b/gnu/dist/gcc/gcc/configure.in
index c14db7f6630..3011a7770bc 100644
--- a/gnu/dist/gcc/gcc/configure.in
+++ b/gnu/dist/gcc/gcc/configure.in
@@ -880,7 +880,9 @@ host_exeext=
# For the host machine, we save the xm_file variable as host_xm_file;
# then we decode the target machine and forget everything else
# that came from the host machine.
+arg_with_cpu="$with_cpu"
for machine in $build $host $target; do
+ with_cpu="$arg_with_cpu"
. ${srcdir}/config.gcc
done