mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
filesystem: wscript: strip lib prefix on Termux too
This commit is contained in:
@@ -15,10 +15,14 @@ def options(opt):
|
|||||||
def configure(conf):
|
def configure(conf):
|
||||||
if conf.env.COMPILER_CXX != 'msvc':
|
if conf.env.COMPILER_CXX != 'msvc':
|
||||||
conf.env.append_unique('CXXFLAGS', ['-fno-exceptions'])
|
conf.env.append_unique('CXXFLAGS', ['-fno-exceptions'])
|
||||||
|
|
||||||
if conf.env.DEST_OS == 'android':
|
if conf.env.DEST_OS == 'android':
|
||||||
conf.check_cc(lib='android')
|
conf.check_cc(lib='android')
|
||||||
elif conf.env.cxxshlib_PATTERN.startswith('lib'): # remove lib prefix for other systems than Android
|
|
||||||
conf.env.cxxshlib_PATTERN = conf.env.cxxshlib_PATTERN[3:]
|
# 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:]
|
||||||
|
|
||||||
if conf.check_cc(fragment=MEMFD_CREATE_TEST, msg='Checking for memfd_create', mandatory=False):
|
if conf.check_cc(fragment=MEMFD_CREATE_TEST, msg='Checking for memfd_create', mandatory=False):
|
||||||
conf.define('HAVE_MEMFD_CREATE', 1)
|
conf.define('HAVE_MEMFD_CREATE', 1)
|
||||||
|
|||||||
Reference in New Issue
Block a user