dgibson / dtc

Device Tree Compiler
219 stars 130 forks source link

libfdt: allow building only static or shared libraries #141

Open blmaier opened 3 months ago

blmaier commented 3 months ago

When using the meson-python backend to compile libfdt, it throws an installation error that it does not know where to install static libraries. We would disable the static libraries, but Meson is always building and installing both the shared and static libraries.

Right now we always build both shared and static libraries because our 'static-build' option needs us to link the dtc binaries against the static libfdt. So we need to make sure static is always built even if the build is configured for shared only.

So instead lets not link against the static library but link all of libfdt's objects directly. We will always have access to the library objects regardless if the build is configured for static or shared.

blmaier commented 6 days ago

PR closed as I accidentally deleted branch, re-opening