m4: Don't set fpic for qt on windows

* m4/qt.m4 (FIND_QT): Do not set fpic for windows.

--
Otherwise each compile call will result in a warning that
fpic is ignored for windows.
This commit is contained in:
Andre Heinecke 2016-07-12 15:26:14 +02:00
parent 744978cce8
commit 938f7e9c8b

View File

@ -23,8 +23,10 @@ AC_DEFUN([FIND_QT],
[have_qt5test_libs="yes"], [have_qt5test_libs="yes"],
[have_qt5test_libs="no"]) [have_qt5test_libs="no"])
if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then if ! test "$have_w32_system" = yes; then
GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic" if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then
GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic"
fi
fi fi
if test "$have_qt5_libs" = "yes"; then if test "$have_qt5_libs" = "yes"; then
AC_CHECK_TOOL(MOC, moc) AC_CHECK_TOOL(MOC, moc)