Skip to content

Commit d419ca7

Browse files
committed
depends: export dynamic JNI symbols from static qtforandroid.a
1 parent ed30684 commit d419ca7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

build-aux/m4/bitcoin_qt.m4

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ AC_DEFUN([BITCOIN_QT_CONFIGURE],[
130130
AX_CHECK_LINK_FLAG([[-framework IOKit]],[QT_LIBS="$QT_LIBS -framework IOKit"],[AC_MSG_ERROR(could not iokit framework)])
131131
_BITCOIN_QT_CHECK_STATIC_PLUGINS([Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin)],[-lqcocoa])
132132
AC_DEFINE(QT_QPA_PLATFORM_COCOA, 1, [Define this symbol if the qt platform is cocoa])
133+
elif test "x$TARGET_OS" = xandroid; then
134+
QT_LIBS="-Wl,--export-dynamic,--undefined=JNI_OnLoad -lqtforandroid -ljnigraphics -landroid -lqtfreetype -lQt5EglSupport $QT_LIBS"
135+
AC_DEFINE(QT_QPA_PLATFORM_ANDROID, 1, [Define this symbol if the qt platform is android])
133136
fi
134137
fi
135138
CPPFLAGS=$TEMP_CPPFLAGS
@@ -343,6 +346,9 @@ AC_DEFUN([_BITCOIN_QT_FIND_STATIC_PLUGINS],[
343346
if test -d "$qt_plugin_path/accessible"; then
344347
QT_LIBS="$QT_LIBS -L$qt_plugin_path/accessible"
345348
fi
349+
if test -d "$qt_plugin_path/platforms/android"; then
350+
QT_LIBS="$QT_LIBS -L$qt_plugin_path/platforms/android -lqtfreetype -lEGL"
351+
fi
346352
if test "x$use_pkgconfig" = xyes; then
347353
: dnl
348354
m4_ifdef([PKG_CHECK_MODULES],[

0 commit comments

Comments
 (0)