diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2006-05-05 17:11:19 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2006-05-05 17:11:19 +0000 |
commit | 4b164edfcacb542944bb0f326ea0747890f44e1f (patch) | |
tree | 3e21172ab5dcb02ab718fad281038458b45c7c5f /sim/configure.ac | |
parent | 56487c5507bb8501767f5f63963107dfef1308fa (diff) | |
download | ppe42-binutils-4b164edfcacb542944bb0f326ea0747890f44e1f.tar.gz ppe42-binutils-4b164edfcacb542944bb0f326ea0747890f44e1f.zip |
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.ac | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sim/configure.ac b/sim/configure.ac index fc1ac57c58..205482bcc9 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. |