filesystem: wscript: strip lib prefix on Android

This commit is contained in:
Alibek Omarov
2025-07-31 02:34:27 +05:00
parent 6661ec3090
commit b43105f13d

View File

@@ -19,10 +19,9 @@ def configure(conf):
if conf.env.DEST_OS == 'android':
conf.check_cc(lib='android')
# remove lib prefix for other systems than Android
if conf.env.DEST_OS != 'android' or conf.env.TERMUX:
if conf.env.cxxshlib_PATTERN.startswith('lib'):
conf.env.cxxshlib_PATTERN = conf.env.cxxshlib_PATTERN[3:]
# remove lib prefix
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)