filesystem: restore lib prefix on Android, otherwise Android won't unpack the libraries

This commit is contained in:
Alibek Omarov 2025-08-08 15:59:59 +05:00
parent 0e48f57247
commit 1c0d145874

View File

@ -19,9 +19,10 @@ def configure(conf):
if conf.env.DEST_OS == 'android':
conf.check_cc(lib='android')
# remove lib prefix
if conf.env.cxxshlib_PATTERN.startswith('lib'):
conf.env.cxxshlib_PATTERN = conf.env.cxxshlib_PATTERN[3:]
# remove lib prefix, except on Android which has issues unpacking libraries without prefix when debuggable=false
if conf.env.DEST_OS != 'android':
if conf.env.cxxshlib_PATTERN.startswith('lib'):
conf.env.cxxshlib_PATTERN = conf.env.cxxshlib_PATTERN[3:]
if conf.check_cc(fragment=MEMFD_CREATE_TEST, msg='Checking for memfd_create', mandatory=False):
conf.define('HAVE_MEMFD_CREATE', 1)