diff options
Diffstat (limited to 'sim/configure')
-rwxr-xr-x | sim/configure | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sim/configure b/sim/configure index 2729e69..243ecc9 100755 --- a/sim/configure +++ b/sim/configure @@ -3589,10 +3589,12 @@ fi # 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 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}} |