diff options
author | John Baldwin <jhb@FreeBSD.org> | 2017-09-06 10:16:12 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2017-09-06 10:16:12 -0700 |
commit | 5c887dd5f699f953e274ba5981fe331eec8e224d (patch) | |
tree | 6457ac26ceb5315b79fcaa429cc47f1d9cf42a73 /sim/common | |
parent | 5aec60eb2f6f0905bfc76f5949fd5d55c6a10f10 (diff) | |
download | gdb-5c887dd5f699f953e274ba5981fe331eec8e224d.zip gdb-5c887dd5f699f953e274ba5981fe331eec8e224d.tar.gz gdb-5c887dd5f699f953e274ba5981fe331eec8e224d.tar.bz2 |
Honor an existing CC_FOR_BUILD in the environment for sim.
This matches the equivalent bits in bfd/acinclude.m4
sim/ChangeLog:
* configure.ac: Honor existing CC_FOR_BUILD in environment.
* configure: Regenerate.
sim/aarch64/ChangeLog:
* configure: Regenerate.
sim/arm/ChangeLog:
* configure: Regenerate.
sim/avr/ChangeLog:
* configure: Regenerate.
sim/bfin/ChangeLog:
* configure: Regenerate.
sim/common/ChangeLog:
* acinclude.m4 (SIM_AC_COMMON) Honor existing CC_FOR_BUILD in
environment.
sim/cr16/ChangeLog:
* configure: Regenerate.
sim/cris/ChangeLog:
* configure: Regenerate.
sim/d10v/ChangeLog:
* configure: Regenerate.
sim/erc32/ChangeLog:
* configure: Regenerate.
sim/frv/ChangeLog:
* configure: Regenerate.
sim/ft32/ChangeLog:
* configure: Regenerate.
sim/h8300/ChangeLog:
* configure: Regenerate.
sim/iq2000/ChangeLog:
* configure: Regenerate.
sim/lm32/ChangeLog:
* configure: Regenerate.
sim/m32c/ChangeLog:
* configure: Regenerate.
sim/m32r/ChangeLog:
* configure: Regenerate.
sim/m68hc11/ChangeLog:
* configure: Regenerate.
sim/mcore/ChangeLog:
* configure: Regenerate.
sim/microblaze/ChangeLog:
* configure: Regenerate.
sim/mips/ChangeLog:
* configure: Regenerate.
sim/mn10300/ChangeLog:
* configure: Regenerate.
sim/moxie/ChangeLog:
* configure: Regenerate.
sim/msp430/ChangeLog:
* configure: Regenerate.
sim/rl78/ChangeLog:
* configure: Regenerate.
sim/rx/ChangeLog:
* configure: Regenerate.
sim/sh/ChangeLog:
* configure: Regenerate.
sim/sh64/ChangeLog:
* configure: Regenerate.
sim/v850/ChangeLog:
* configure: Regenerate.
Diffstat (limited to 'sim/common')
-rw-r--r-- | sim/common/ChangeLog | 5 | ||||
-rw-r--r-- | sim/common/acinclude.m4 | 10 |
2 files changed, 11 insertions, 4 deletions
diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 65c2f8b..8b39609 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,8 @@ +2017-09-06 John Baldwin <jhb@FreeBSD.org> + + * acinclude.m4 (SIM_AC_COMMON): Honor existing CC_FOR_BUILD in + environment. + 2017-05-24 Yao Qi <yao.qi@linaro.org> * sim-trace.c (trace_disasm): Caller update. diff --git a/sim/common/acinclude.m4 b/sim/common/acinclude.m4 index 5ebf584..abc15a9 100644 --- a/sim/common/acinclude.m4 +++ b/sim/common/acinclude.m4 @@ -41,10 +41,12 @@ AC_ARG_PROGRAM AC_PROG_INSTALL # Put a plausible default for CC_FOR_BUILD in Makefile. -if test "x$cross_compiling" = "xno"; then - CC_FOR_BUILD='$(CC)' -else - CC_FOR_BUILD=gcc +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) |