diff options
| author | Andre Heinecke <[email protected]> | 2016-07-12 13:26:14 +0000 | 
|---|---|---|
| committer | Andre Heinecke <[email protected]> | 2016-07-12 13:26:14 +0000 | 
| commit | 938f7e9c8b466594d05c0347fe627b225263a6a6 (patch) | |
| tree | 7538e663cd71c22a5833a17a48955b484c1d6f48 | |
| parent | m4: Use LIBS instead of LDFLAGS for Qt libs (diff) | |
| download | gpgme-938f7e9c8b466594d05c0347fe627b225263a6a6.tar.gz gpgme-938f7e9c8b466594d05c0347fe627b225263a6a6.zip | |
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.
| -rw-r--r-- | m4/qt.m4 | 6 | 
1 files changed, 4 insertions, 2 deletions
| @@ -23,8 +23,10 @@ AC_DEFUN([FIND_QT],                      [have_qt5test_libs="yes"],                      [have_qt5test_libs="no"]) -  if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then -    GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic" +  if ! test "$have_w32_system" = yes; then +    if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then +      GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic" +    fi    fi    if test "$have_qt5_libs" = "yes"; then      AC_CHECK_TOOL(MOC, moc) | 
