configure: modify configure for recent macOS
authorJinhyung Jo <jinhyung.jo@samsung.com>
Thu, 1 Jun 2017 11:50:28 +0000 (20:50 +0900)
committerJinhyung Jo <jinhyung.jo@samsung.com>
Wed, 7 Jun 2017 11:33:26 +0000 (20:33 +0900)
Change-Id: I8fb928f2de4f7168b27faedac02a0d2c37585666
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
Signed-off-by: Jinhyung Jo <jinhyung.jo@samsung.com>
(cherry picked from commit 67ddd95f1039d5b44e2db1304c3580386e0236ab)

configure
tizen/emulator_configure.sh
tizen/src/skin/client/build.xml

index a4facfd0fcbd3da723f956476b5f6bac3ccd89ec..6ab98434a8ef90cfc3873408d19e92e3ca7f9898 100755 (executable)
--- a/configure
+++ b/configure
@@ -49,6 +49,7 @@ do_compiler() {
     shift
     echo $compiler "$@" >> config.log
     $compiler "$@" >> config.log 2>&1 || return $?
+
     # Test passed. If this is an --enable-werror build, rerun
     # the test with -Werror and bail out if it fails. This
     # makes warning-generating-errors in configure test code
@@ -63,11 +64,15 @@ do_compiler() {
         ;;
     esac
     echo $compiler -Werror "$@" >> config.log
-    $compiler -Werror "$@" >> config.log 2>&1 && return $?
-    error_exit "configure test passed without -Werror but failed with -Werror." \
-        "This is probably a bug in the configure script. The failing command" \
-        "will be at the bottom of config.log." \
-        "You can run configure with --disable-werror to bypass this check."
+#   Modified - it produces confusable result with clang.
+#   We use -Werror for all platforms. So, simply, we just return result.
+    $compiler -Werror "$@" >> config.log 2>&1
+    return $?
+#   $compiler -Werror "$@" >> config.log 2>&1 && return $?
+#   error_exit "configure test passed without -Werror but failed with -Werror." \
+#       "This is probably a bug in the configure script. The failing command" \
+#       "will be at the bottom of config.log." \
+#       "You can run configure with --disable-werror to bypass this check."
 }
 
 do_cc() {
index df17a03ac5b77eaf7321b364565656212de89861..bd2fcfb99973fcc16b958238f03de80b47bb1395 100755 (executable)
@@ -232,9 +232,13 @@ echo ""
 echo "##### QEMU configuring for emulator"
 echo "##### QEMU configure append:" $CONFIGURE_APPEND
 ./configure \
+ --cc=clang \
+ --cxx=clang++ \
  --enable-werror \
- --extra-cflags=-mmacosx-version-min=10.7 \
- --extra-cflags=-Wno-deprecated-declarations \
+ --extra-cflags=-mmacosx-version-min=10.9 \
+ --extra-cflags=-Wno-error=deprecated-declarations \
+ --extra-cflags=-Wno-error=address-of-packed-member \
+ --extra-cflags=-Wno-error=constant-conversion \
  --audio-drv-list=coreaudio \
  --enable-shm \
  --enable-hax \
index 2a7124fd84d9cddf0f35bf017ca3d65d09d56d84..977ca858e79da973402439a9ac0b533b5638e29d 100644 (file)
                        <class name="org.tizen.emulator.skin.EmulatorShmSkin" />
                </javah>
                <exec dir="native_src" executable="cc" failifexecutionfails="false">
-                       <arg line="-mmacosx-version-min=10.4" />
+                       <arg line="-mmacosx-version-min=10.9" />
                        <arg line="-c" />
                        <arg line="share.c" />
                        <arg line="-o" />