emulator: enable "-Werror" sophisticatedly on MacOS 31/24431/2
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Mon, 14 Jul 2014 09:29:20 +0000 (18:29 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 15 Jul 2014 01:44:57 +0000 (18:44 -0700)
Change-Id: I4c3cc6739db264f3dd4cf35d7a041b35dc5d6f1a
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
configure
tizen/emulator_configure.sh

index 20ab947..04aa43f 100755 (executable)
--- a/configure
+++ b/configure
@@ -968,7 +968,9 @@ for opt do
   ;;
   --enable-uname-release=*) uname_release="$optarg"
   ;;
-  --enable-werror) werror="yes"
+  --enable-werror)
+      werror="yes" ;
+      force_werror="yes" ;
   ;;
   --disable-werror) werror="no"
   ;;
@@ -3871,10 +3873,12 @@ int main(void) {
     return 0;
 }
 EOF
-if compile_prog "-Werror" "" ; then
+if test "$force_werror" != "yes"; then
+  if compile_prog "-Werror" "" ; then
     pragma_diagnostic_available=yes
-else
+  else
     werror=no
+  fi
 fi
 
 ########################################
index a3d9bb5..cebc28e 100755 (executable)
@@ -230,7 +230,7 @@ echo ""
 echo "##### QEMU configuring for emulator"
 echo "##### QEMU configure append:" $CONFIGURE_APPEND
 ./configure \
- --extra-cflags=-Werror \
+ --enable-werror \
  --extra-cflags=-mmacosx-version-min=10.4 \
  --audio-drv-list=coreaudio \
  --enable-shm \