Skip to content

Commit cba4a7e

Browse files
committed
build, qt: Always test plugins/subdir before adding to search paths
The existence of each subdir is not guaranteed for all platforms.
1 parent e0bc27a commit cba4a7e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build-aux/m4/bitcoin_qt.m4

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
123123
_BITCOIN_QT_CHECK_STATIC_LIBS
124124
125125
if test "x$qt_plugin_path" != x; then
126-
QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms -L$qt_plugin_path/styles"
126+
if test -d "$qt_plugin_path/platforms"; then
127+
QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms"
128+
fi
129+
if test -d "$qt_plugin_path/styles"; then
130+
QT_LIBS="$QT_LIBS -L$qt_plugin_path/styles"
131+
fi
127132
if test -d "$qt_plugin_path/accessible"; then
128133
QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
129134
fi

0 commit comments

Comments
 (0)