Try fix empty/missing DT_HASH in "libOpenSLES.so"

This commit is contained in:
一线灵 2022-04-04 17:47:45 +08:00 committed by GitHub
parent 34f5b84d5d
commit ff2258be7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -89,6 +89,12 @@ endif()
set(CMAKE_DEBUG_POSTFIX "" CACHE STRING "Library postfix for debug builds. Normally left blank." FORCE)
# set hash style to both for android old device compatible
# see also: https://github.com/adxeproject/adxe/discussions/614
if (ANDROID)
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--hash-style=both")
endif()
# check visual studio version
if(WINDOWS)
# not support other compile tools except MSVC for now