diff options
author | Tero Tervala <tero.tervala@unikie.com> | 2022-06-29 19:35:57 +0300 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2022-07-27 16:38:45 +1000 |
commit | 7ad60734b1c1ac12856674fa7913fc9492dc5d28 (patch) | |
tree | 8d4f765563e116a81d39b4d1384834f0f599cf3a /libfdt | |
parent | fd9b8c96c780c90dd0f1af46963bf2c52de1f0a6 (diff) | |
download | device-tree-compiler-7ad60734b1c1ac12856674fa7913fc9492dc5d28.tar.gz |
Allow static building with meson
Added "static-build" option in the meson_options.txt.
Setting it to "true" allows static building.
Signed-off-by: Tero Tervala <tero.tervala@unikie.com>
Message-Id: <20220629163557.932298-1-tero.tervala@unikie.com>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt')
-rw-r--r-- | libfdt/meson.build | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/libfdt/meson.build b/libfdt/meson.build index 71f29b6..240bdf4 100644 --- a/libfdt/meson.build +++ b/libfdt/meson.build @@ -31,9 +31,15 @@ libfdt_a = static_library( libfdt_inc = include_directories('.') +if static_build + link_with = libfdt_a +else + link_with = libfdt +endif + libfdt_dep = declare_dependency( include_directories: libfdt_inc, - link_with: libfdt, + link_with: link_with, ) install_headers( |