[Buildroot] [PATCH v4 1/1] capnproto: new package
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Mon Jul 16 15:03:16 UTC 2018
Hello,
On Tue, 10 Jul 2018 16:31:25 -0600, Joel Carlson wrote:
> Adds the capnproto package. This also builds a host variant to generate
> the capnp compiler that can be used to compile message definitions into
> C++ code. Includes a patch from upstream to fix an issue with uclibc.
>
> Signed-off-by: Koen Martens <gmc at sonologic.nl>
> Signed-off-by: Joel Carlson <JoelsonCarl at gmail.com>
Thanks, I've applied, after doing one more change.
> +CAPNPROTO_CONF_ENV += LIBS=-latomic
You can't do that unconditionally, because libatomic doesn't always
exists. This needs to be enclosed in a BR2_TOOLCHAIN_HAS_LIBATOMIC
condition.
For example, some architectures provide __atomic built-ins with gcc
4.7 (so BR2_TOOLCHAIN_HAS_ATOMIC is true), and there was no libatomic at
the time (so BR2_TOOLCHAIN_HAS_LIBATOMIC is false).
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin (formerly Free Electrons)
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list