Skip to content

Commit 9b413d2

Browse files
committed
hook: use mali_lib_version for SONAME and library version
The hook was hardcoded to dlopen libmali.so.1 via mali_version.split('.')[0]. For prebuilts with SONAME libmali.so.0 (e.g. g29p1), this caused a fatal dlopen failure at runtime. Use mali_lib_version instead so the hook matches the actual SONAME of the prebuilt library.
1 parent 0e50d83 commit 9b413d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hook/meson.build

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ gbm_check_funcs = [
1818
]
1919

2020
libhook_cflags = [
21-
'-DLIBMALI_SO="libmali.so.' + mali_version.split('.')[0] + '"',
21+
'-DLIBMALI_SO="libmali.so.' + mali_lib_version.split('.')[0] + '"',
2222
]
2323

2424
libhook_dep = [
@@ -66,7 +66,7 @@ libhook = shared_library(
6666
dependencies : libhook_dep,
6767
link_with : libmali,
6868
install : true,
69-
version : mali_version)
69+
version : mali_lib_version)
7070

7171
libhook_ldflags = ['-L${libdir}', '-lmali-hook']
7272

0 commit comments

Comments
 (0)