about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xqemu_mode/build_qemu_support.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/qemu_mode/build_qemu_support.sh b/qemu_mode/build_qemu_support.sh
index 0101b733..a88cb54f 100755
--- a/qemu_mode/build_qemu_support.sh
+++ b/qemu_mode/build_qemu_support.sh
@@ -385,6 +385,7 @@ if [ "$ORIG_CROSS" = "" ]; then
     fi
     if ! command -v "$CROSS" > /dev/null && [ "`uname -m`" = "x86_64" ]
     then # set -m32
+      test "$CC" = "" && CC="gcc"
       CROSS="$CC -m32"
     fi
   fi