aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-09-14 04:05:41 +0000
committerIan Lance Taylor <ian@airs.com>1996-09-14 04:05:41 +0000
commitad0d14e7a21a002e88d23c7b7aa417ad27fe534e (patch)
treea1a1d472fea1d0ce28375717c0ffc2de0a1ef95c /sim
parent19d44375ff05bb2c50595ffcd955af61bbabd164 (diff)
downloadgdb-ad0d14e7a21a002e88d23c7b7aa417ad27fe534e.zip
gdb-ad0d14e7a21a002e88d23c7b7aa417ad27fe534e.tar.gz
gdb-ad0d14e7a21a002e88d23c7b7aa417ad27fe534e.tar.bz2
* Makefile.in (CC_FOR_BUILD): New variable.
(AR, AR_FLAGS, BISON, MAKEINFO): Remove duplicate variables. (RANLIB, CC): Likewise. (end): Use $(CC_FOR_BUILD), not $(CC). * configure.in: Set CC_FOR_BUILD. * configure: Rebuild.
Diffstat (limited to 'sim')
-rw-r--r--sim/erc32/configure.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/sim/erc32/configure.in b/sim/erc32/configure.in
index 2438a6c..33ad604 100644
--- a/sim/erc32/configure.in
+++ b/sim/erc32/configure.in
@@ -16,4 +16,15 @@ AR=${AR-ar}
AC_SUBST(AR)
AC_PROG_RANLIB
+# Put a plausible default for CC_FOR_BUILD in Makefile.
+AC_C_CROSS
+if test -z "$CC_FOR_BUILD"; then
+ if test "x$cross_compiling" = "xno"; then
+ CC_FOR_BUILD='$(CC)'
+ else
+ CC_FOR_BUILD=gcc
+ fi
+fi
+AC_SUBST(CC_FOR_BUILD)
+
AC_OUTPUT(Makefile)