[Buildroot] [PATCH] package/libbytesize: remove pcre2 runtime dependency
thomas.petazzoni at bootlin.com
Thu Mar 25 15:39:42 UTC 2021
On Thu, 25 Mar 2021 15:40:36 +0100
Stefan Agner <stefan at agner.ch> wrote:
> Hmm, I think I don't understand how runtime/compile time dependencies
> work in buildroot.
> I read this section:
> But I think i got this wrong, gettext in that case is only a runtime
Yes, and because it's only a runtime dependency, we need to make sure
it is enabled in the configuration (which the "select" does), but we
don't need to ensure it is built *before* a certain package (which
> Is there a way to have something as compile time dependency but not a
> runtime dependency?
No, because it is fairly uncommon to have something that is a compile
time dependency but not necessary at runtime. Do you have specific
examples in mind ?
For example, in your patch, libbytesize links against the libpcre2
library. So there is a build time dependency, as libpcre2 needs to be
built before libbytesize, for the link of libbytesize to succeed. But
there is also a runtime dependency: libpcre2.so needs to be on the
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
More information about the buildroot