mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
wscript: look for libm when compiling for Android on Android device itself (e.g. Termux)
This commit is contained in:
5
wscript
5
wscript
@@ -456,7 +456,10 @@ def configure(conf):
|
||||
elif conf.env.DEST_OS == 'android':
|
||||
conf.check_cc(lib='dl')
|
||||
conf.check_cc(lib='log')
|
||||
# LIB_M added in xcompile!
|
||||
if not conf.options.ANDROID_OPTS:
|
||||
# if we're compiling on device itself
|
||||
conf.check_cc(lib='m')
|
||||
# otherwise LIB_M is defined by xcompile (as it might be libm_hard, depending on NDK configuration)
|
||||
elif conf.env.DEST_OS == 'win32':
|
||||
# Common Win32 libraries
|
||||
# Don't check them more than once, to save time
|
||||
|
||||
Reference in New Issue
Block a user