Add missing use_fork and use_dylink to meson ##build (#18398)

This commit is contained in:
pancake 2021-03-01 20:20:24 +01:00 committed by GitHub
parent 815c432217
commit ab48f55cc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -266,6 +266,9 @@ else
use_sys_openssl = false
endif
use_fork = get_option('use_fork')
use_dylink = get_option('use_dylink')
# handle libuv library
if get_option('use_libuv')
libuv_dep = dependency('libuv', version: '>=1.0.0', required: false)
@ -336,8 +339,8 @@ userconf.set('EXTRAS', r2_extras)
userconf.set('BINDINGS', r2_bindings)
userconf.set10('HAVE_OPENSSL', use_sys_openssl)
userconf.set10('HAVE_LIBUV', use_libuv)
userconf.set10('HAVE_FORK', true)
userconf.set10('WANT_DYLINK', true)
userconf.set10('HAVE_FORK', use_fork)
userconf.set10('WANT_DYLINK', use_dylink)
userconf.set10('HAVE_PTRACE', have_ptrace)
userconf.set10('USE_PTRACE_WRAP', use_ptrace_wrap)
userconf.set10('WITH_GPL', true)

View File

@ -36,6 +36,8 @@ option('use_sys_openssl', type: 'boolean', value: false)
option('static_sys_openssl', type: 'boolean', value: false)
option('use_sys_tree_sitter', type: 'boolean', value: false)
option('use_libuv', type: 'boolean', value: true)
option('use_fork', type: 'boolean', value: true)
option('use_dylink', type: 'boolean', value: true)
option('debugger', type: 'boolean', value: true)
option('use_webui', type: 'boolean', value: false, description: 'install different WebUIs for radare2')