Add CFLAGS '-fno-omit-frame-pointer' on MinGW. 97/7797/1
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 16 Jul 2013 06:10:13 +0000 (15:10 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 6 Aug 2013 05:08:09 +0000 (14:08 +0900)
A GCC on MinGW might have a bug related with omitting frame pointer.
It generates weird instructions. So we trying to avoid this bugs.

Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
tizen/emulator_configure.sh

index 3c021c8908182e7883e2109c9ecb69cbe4d56a0d..eeb1b631591bc447216866d479d36d67f6d7420b 100755 (executable)
@@ -249,8 +249,12 @@ cd ..
 echo ""
 echo "##### QEMU configuring for emulator"
 echo "##### QEMU configure append:" $CONFIGURE_APPEND
+# We add CFLAGS '-fno-omit-frame-pointer'.
+# A GCC might have a bug related with omitting frame pointer. It generates weird instructions.
 exec ./configure \
  $CONFIGURE_APPEND \
+ --extra-cflags=-fno-omit-frame-pointer \
+ --cc=gcc \
  --audio-drv-list=winwave \
  --audio-card-list=ac97 \
  --enable-hax \