You've already forked android_translation_layer
mirror of
https://gitlab.com/android_translation_layer/android_translation_layer.git
synced 2025-10-27 11:48:10 -07:00
enable lazy linking for libandroid so that it can launch with missing symbols
Outdated Nvidia driver version 340 doesn't implement EGL and causes following error: symbol lookup error: /app/lib/libandroid.so.0: undefined symbol: eglGetPlatformDisplay The crash can be avoided by lazy linking as long as the application doesn't use EGL directly.
This commit is contained in:
@@ -73,6 +73,9 @@ libandroid_so = shared_library('android', [
|
||||
],
|
||||
c_args: [
|
||||
'-D_LARGEFILE64_SOURCE',
|
||||
],
|
||||
link_args : [
|
||||
'-Wl,-z,lazy', # outdated Nvidia driver version 340 lacks EGL symbols
|
||||
])
|
||||
|
||||
libtranslationlayer_so = shared_library('translation_layer_main', [
|
||||
|
||||
Reference in New Issue
Block a user