mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
Some packaging systems like NixOS don't support compiling static libraries. However libfdt's meson.build uses `both_library()` which forces the build to always compile shared and static libraries. Removing `both_library()` will make packaging easier. libfdt uses `both_libraries()` to support the 'static-build' option. But we do not need the 'static-build' option as Meson can natively build static using > meson setup builddir/ -Dc_link_args='-static' --prefer-static --default-library=static So drop 'static-build' and then replace `both_libraries()` with `library()`. Signed-off-by: Brandon Maier <brandon.maier@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
12 lines
583 B
Meson
12 lines
583 B
Meson
option('tools', type: 'boolean', value: true,
|
|
description: 'Build tools')
|
|
option('assume-mask', type: 'integer', value: 0,
|
|
description: 'Control the assumptions made (e.g. risking security issues) in the code.')
|
|
option('yaml', type: 'feature', value: 'auto',
|
|
description: 'YAML support')
|
|
option('valgrind', type: 'feature', value: 'auto',
|
|
description: 'Valgrind support')
|
|
option('python', type: 'feature', value: 'auto',
|
|
description: 'Build pylibfdt Python library')
|
|
option('tests', type: 'boolean', value: true,
|
|
description: 'Build tests')
|