diff --git a/m4/qt.m4 b/m4/qt.m4 index 62579d5..848c15e 100644 --- a/m4/qt.m4 +++ b/m4/qt.m4 @@ -24,8 +24,9 @@ AC_DEFUN([FIND_QT], [have_qt5test_libs="no"]) if ! test "$have_w32_system" = yes; then + GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -shared" if "$PKG_CONFIG" --variable qt_config Qt5Core | grep -q "reduce_relocations"; then - GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fpic" + GPGME_QT_CFLAGS="$GPGME_QT_CFLAGS -fPIC" fi fi if test "$have_qt5_libs" = "yes"; then