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,7 +19,8 @@ def configure(conf):
if conf.env.DEST_OS == 'android': if conf.env.DEST_OS == 'android':
conf.check_cc(lib='android') conf.check_cc(lib='android')
# remove lib prefix # 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'): if conf.env.cxxshlib_PATTERN.startswith('lib'):
conf.env.cxxshlib_PATTERN = conf.env.cxxshlib_PATTERN[3:] conf.env.cxxshlib_PATTERN = conf.env.cxxshlib_PATTERN[3:]