aboutsummaryrefslogtreecommitdiff
path: root/sim/configure.ac
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2006-05-05 17:11:19 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2006-05-05 17:11:19 +0000
commit4b164edfcacb542944bb0f326ea0747890f44e1f (patch)
tree3e21172ab5dcb02ab718fad281038458b45c7c5f /sim/configure.ac
parent56487c5507bb8501767f5f63963107dfef1308fa (diff)
downloadfsf-binutils-gdb-4b164edfcacb542944bb0f326ea0747890f44e1f.zip
fsf-binutils-gdb-4b164edfcacb542944bb0f326ea0747890f44e1f.tar.gz
fsf-binutils-gdb-4b164edfcacb542944bb0f326ea0747890f44e1f.tar.bz2
sim/:
* configure.ac (CFLAGS_FOR_BUILD): Set and substitute. * configure: Regenerate. * Makefile.in (CFLAGS_FOR_BUILD): Define. (CC_FOR_BUILD): Don't override. (FLAGS_TO_PASS): Pass CFLAGS_FOR_BUILD. sim/ppc/: * configure.ac (CFLAGS_FOR_BUILD): Set and substitute. * configure: Regenerate. * Makefile.in (CFLAGS_FOR_BUILD): Define. (BUILD_CFLAGS): Use it instead of hardcoding "-g -O". (gentmap): Fix typo BUILD_FLAGS -> BUILD_CFLAGS.
Diffstat (limited to 'sim/configure.ac')
-rw-r--r--sim/configure.ac2
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/configure.ac b/sim/configure.ac
index fc1ac57..205482b 100644
--- a/sim/configure.ac
+++ b/sim/configure.ac
@@ -23,6 +23,8 @@ else
CC_FOR_BUILD=gcc
fi
AC_SUBST(CC_FOR_BUILD)
+CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
+AC_SUBST(CFLAGS_FOR_BUILD)
# If a cpu ever has more than one simulator to choose from, use
# --enable-sim=... to choose.