@@ -121,6 +121,17 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
121
121
_BITCOIN_QT_IS_STATIC
122
122
if test "x$bitcoin_cv_static_qt" = xyes; then
123
123
_BITCOIN_QT_CHECK_STATIC_LIBS
124
+
125
+ if test "x$qt_plugin_path" != x; then
126
+ QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms"
127
+ if test -d "$qt_plugin_path/accessible"; then
128
+ QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
129
+ fi
130
+ if test -d "$qt_plugin_path/platforms/android"; then
131
+ QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms/android -lqtfreetype -lEGL"
132
+ fi
133
+ fi
134
+
124
135
AC_DEFINE ( QT_STATICPLUGIN , 1 , [ Define this symbol if qt plugins are static] )
125
136
if test "x$TARGET_OS" != xandroid; then
126
137
_BITCOIN_QT_CHECK_STATIC_PLUGIN([ QMinimalIntegrationPlugin] , [ -lqminimal] )
@@ -307,16 +318,8 @@ dnl _BITCOIN_QT_CHECK_STATIC_LIBS
307
318
dnl -----------------------------
308
319
dnl
309
320
dnl Inputs: no inputs.
310
- dnl Outputs: QT_LIBS is appended
321
+ dnl Outputs: QT_LIBS is prepended.
311
322
AC_DEFUN ( [ _BITCOIN_QT_CHECK_STATIC_LIBS] , [
312
- if test "x$qt_plugin_path" != x; then
313
- QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms"
314
- if test -d "$qt_plugin_path/accessible"; then
315
- QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
316
- fi
317
- if test -d "$qt_plugin_path/platforms/android"; then
318
- QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms/android -lqtfreetype -lEGL"
319
- fi
320
323
PKG_CHECK_MODULES([ QTFONTDATABASE] , [ Qt5FontDatabaseSupport${qt_lib_suffix}] , [ QT_LIBS="-lQt5FontDatabaseSupport${qt_lib_suffix} $QT_LIBS"] )
321
324
PKG_CHECK_MODULES([ QTEVENTDISPATCHER] , [ Qt5EventDispatcherSupport${qt_lib_suffix}] , [ QT_LIBS="-lQt5EventDispatcherSupport${qt_lib_suffix} $QT_LIBS"] )
322
325
PKG_CHECK_MODULES([ QTTHEME] , [ Qt5ThemeSupport${qt_lib_suffix}] , [ QT_LIBS="-lQt5ThemeSupport${qt_lib_suffix} $QT_LIBS"] )
@@ -330,7 +333,6 @@ AC_DEFUN([_BITCOIN_QT_CHECK_STATIC_LIBS], [
330
333
PKG_CHECK_MODULES([ QTGRAPHICS] , [ Qt5GraphicsSupport${qt_lib_suffix}] , [ QT_LIBS="-lQt5GraphicsSupport${qt_lib_suffix} $QT_LIBS"] )
331
334
PKG_CHECK_MODULES([ QTCGL] , [ Qt5CglSupport${qt_lib_suffix}] , [ QT_LIBS="-lQt5CglSupport${qt_lib_suffix} $QT_LIBS"] )
332
335
fi
333
- fi
334
336
] )
335
337
336
338
dnl Internal. Find Qt libraries using pkg-config.
0 commit comments