mirror of
https://github.com/json-c/json-c.git
synced 2026-09-09 17:46:49 +08:00
meson: wire up extra_libs option
This is more elegant as a meson feature option because feature options propagate in a useful way to `dependency(..., required: ...)`. Without this, the option was ignored. Wiring it up naively meant that disabling it still searched for libbsd as well, so a feature option is the best fit. Also, mark it as a dependency of `arc4random`. Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@ option('disable_thread_local_storage', type: 'boolean', value: false, descriptio
|
||||
option('enable_rdrand', type: 'boolean', value: false, description: 'Enable RDRAND Hardware RNG')
|
||||
option('enable_threading', type: 'boolean', value: false, description: 'Enable partial threading support')
|
||||
option('override_get_random_seed', type: 'boolean', value: false, description: 'Override json_c_get_random_seed()')
|
||||
option('disable_extra_libs', type: 'boolean', value: false, description: 'Avoid linking extra libraries like libbsd')
|
||||
option('extra_libs', type: 'feature', value: 'enabled', description: 'Allow linking extra libraries like libbsd')
|
||||
option('disable_json_pointer', type: 'boolean', value: false, description: 'Disable JSON pointer support')
|
||||
option('disable_json_patch', type: 'boolean', value: false, description: 'Disable JSON patch support')
|
||||
option('newlocale_needs_freelocale', type: 'boolean', value: false, description: 'FreeBSD workaround for newlocale')
|
||||
|
||||
Reference in New Issue
Block a user