aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@cygnus.com>1998-04-15 12:41:32 +0000
committerJim Wilson <wilson@gcc.gnu.org>1998-04-15 05:41:32 -0700
commitdf6faf7954d8c5360809a6a91de4def068ee7e18 (patch)
tree42f76030f446b146f5e131502f34f3e079788b92
parent71b5e532651be5b2ac1fed0fad69b07c11072438 (diff)
downloadgcc-df6faf7954d8c5360809a6a91de4def068ee7e18.zip
gcc-df6faf7954d8c5360809a6a91de4def068ee7e18.tar.gz
gcc-df6faf7954d8c5360809a6a91de4def068ee7e18.tar.bz2
Fix host/build confusion with gas and gnu_ld flags.
* configure.in (gnu_ld): Rename to gnu_ld_flag before main loop. Set gnu_ld to gnu_ld_flag inside main loop. (gas): Likewise. From-SVN: r19230
-rw-r--r--gcc/ChangeLog6
-rwxr-xr-xgcc/configure12
-rw-r--r--gcc/configure.in12
3 files changed, 22 insertions, 8 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ae81faf..26b7ea8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Wed Apr 15 12:38:03 1998 Jim Wilson <wilson@cygnus.com>
+
+ * configure.in (gnu_ld): Rename to gnu_ld_flag before main loop.
+ Set gnu_ld to gnu_ld_flag inside main loop.
+ (gas): Likewise.
+
Wed Apr 15 14:50:05 1998 Dave Brolley <brolley@cygnus.com>
* toplev.c (compile_file): Call init_parse using new interface.
diff --git a/gcc/configure b/gcc/configure
index 3ae066f..b68a0c6 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -556,9 +556,9 @@ copy=cp
# Check whether --with-gnu-ld or --without-gnu-ld was given.
if test "${with_gnu_ld+set}" = set; then
withval="$with_gnu_ld"
- gnu_ld="$with_gnu_ld"
+ gnu_ld_flag="$with_gnu_ld"
else
- gnu_ld=no
+ gnu_ld_flag=no
fi
@@ -566,9 +566,9 @@ fi
# Check whether --with-gnu-as or --without-gnu-as was given.
if test "${with_gnu_as+set}" = set; then
withval="$with_gnu_as"
- gas="$with_gnu_as"
+ gas_flag="$with_gnu_as"
else
- gas=no
+ gas_flag=no
fi
@@ -1935,6 +1935,10 @@ for machine in $build $host $target; do
exeext=
# Set this to control which thread package will be used.
thread_file=
+ # Reinitialize these from the flag values every loop pass, since some
+ # configure entries modify them.
+ gas="$gas_flag"
+ gnu_ld="$gnu_ld_flag"
# Set default cpu_type, tm_file and xm_file so it can be updated in
# each machine entry.
diff --git a/gcc/configure.in b/gcc/configure.in
index 3930a1e..1387ed0 100644
--- a/gcc/configure.in
+++ b/gcc/configure.in
@@ -34,14 +34,14 @@ copy=cp
# With GNU ld
AC_ARG_WITH(gnu-ld,
[ --with-gnu-ld arrange to work with GNU ld.],
-gnu_ld="$with_gnu_ld",
-gnu_ld=no)
+gnu_ld_flag="$with_gnu_ld",
+gnu_ld_flag=no)
# With GNU as
AC_ARG_WITH(gnu-as,
[ --with-gnu-as arrange to work with GNU as.],
-gas="$with_gnu_as",
-gas=no)
+gas_flag="$with_gnu_as",
+gas_flag=no)
# With stabs
AC_ARG_WITH(stabs,
@@ -246,6 +246,10 @@ for machine in $build $host $target; do
exeext=
# Set this to control which thread package will be used.
thread_file=
+ # Reinitialize these from the flag values every loop pass, since some
+ # configure entries modify them.
+ gas="$gas_flag"
+ gnu_ld="$gnu_ld_flag"
# Set default cpu_type, tm_file and xm_file so it can be updated in
# each machine entry.