Only pass -lQt5PlatformSupport if >=Qt5.6

This commit is contained in:
Jonas Schnelli
2016-06-20 10:17:01 +02:00
parent 59d063d076
commit 2759597bc8
2 changed files with 6 additions and 1 deletions

View File

@@ -343,7 +343,9 @@ AC_DEFUN([_BITCOIN_QT_FIND_STATIC_PLUGINS],[
PKG_CHECK_MODULES([QTPRINT], [Qt5PrintSupport], [QT_LIBS="$QTPRINT_LIBS $QT_LIBS"])
fi
else
QT_LIBS="-lQt5PlatformSupport $QT_LIBS"
if ${PKG_CONFIG} --exists "Qt5Core >= 5.6" 2>/dev/null; then
QT_LIBS="-lQt5PlatformSupport $QT_LIBS"
fi
fi
])
else