configure: add "-mwindows" when qt is enabled on windows
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 5 Aug 2015 05:05:10 +0000 (14:05 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Wed, 5 Aug 2015 05:05:10 +0000 (14:05 +0900)
Change-Id: I5ba4f0ce3f115c55cd9e0747326099a97eab1395
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
configure

index 0c98bac..6b85a99 100755 (executable)
--- a/configure
+++ b/configure
@@ -2216,7 +2216,12 @@ if test "$qt" != "no"; then
         if $pkg_config --exists "$qtpackage >= $qtversion"; then
             qt_cflags=`$pkg_config --cflags $qtpackage`
             qt_libs=`$pkg_config --libs $qtpackage`
-            libs_softmmu="$qt_libs $libs_softmmu"
+
+            if test "$mingw32" = "no" ; then
+                libs_softmmu="$qt_libs $libs_softmmu"
+            else
+                libs_softmmu="$qt_libs -mwindows $libs_softmmu"
+            fi
 
             qt_cflags_private=`pkg-config --modversion Qt5Gui`
             if test "$darwin" = "yes" ; then