diff options
author | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-06-20 10:17:01 +0200 |
---|---|---|
committer | Jonas Schnelli <dev@jonasschnelli.ch> | 2016-06-20 10:17:01 +0200 |
commit | 2759597bc8617039a7ffa6210f4d49a985a20093 (patch) | |
tree | f0e7868f6f1cd8fe52ede29d06d4b44079d72a12 /build-aux/m4/bitcoin_qt.m4 | |
parent | 59d063d07660d6e8d53ed8aa1eb8b0747ea6767c (diff) |
Only pass -lQt5PlatformSupport if >=Qt5.6
Diffstat (limited to 'build-aux/m4/bitcoin_qt.m4')
-rw-r--r-- | build-aux/m4/bitcoin_qt.m4 | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build-aux/m4/bitcoin_qt.m4 b/build-aux/m4/bitcoin_qt.m4 index 210df3c025..74d9102674 100644 --- a/build-aux/m4/bitcoin_qt.m4 +++ b/build-aux/m4/bitcoin_qt.m4 @@ -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 |