Update build config for luajit on macOS

This commit is contained in:
Francesco Abbate 2021-10-03 13:21:36 -07:00
parent 20d2b8c21f
commit eca6db0d5a
2 changed files with 4 additions and 2 deletions

View File

@ -39,6 +39,8 @@ endif
if host_machine.system() == 'darwin'
lite_link_args += ['-framework', 'CoreServices', '-framework', 'Foundation']
# the linker aguments below are needed by luajit on macOS
lite_link_args += ['-pagezero_size', '10000', '-image_base', '100000000']
endif
#===============================================================================
# Dependencies
@ -47,7 +49,7 @@ if not get_option('source-only')
libm = cc.find_library('m', required : false)
libdl = cc.find_library('dl', required : false)
threads_dep = dependency('threads')
lua_dep = dependency('luajit', fallback: ['luajit', 'luajit_dep'],
lua_dep = dependency('luajit', fallback: ['luajit', 'lua_dep'],
default_options: ['default_library=static']
)
pcre2_dep = dependency('libpcre2-8')

View File

@ -1,5 +1,5 @@
[wrap-git]
directory = luajit
url = https://github.com/franko/luajit
revision = v2.0.5-lhelper3
revision = v2.0.5-lhelper4