[Buildroot] [PATCH v2, 1/1] package/log4cplus: link with libatomic when needed
Thomas Petazzoni
thomas.petazzoni at bootlin.com
Sun Feb 17 15:01:15 UTC 2019
Hello,
On Sun, 17 Feb 2019 10:33:26 +0100
Fabrice Fontaine <fontaine.fabrice at gmail.com> wrote:
> On some architectures, atomic binutils are provided by the libatomic
> library from gcc. Linking with libatomic is therefore necessary,
> otherwise the build fails with:
>
> sparc-buildroot-linux-uclibc/sysroot/lib/libatomic.so.1: error adding symbols: DSO missing from command line
>
> This is often for example the case on sparcv8 32 bit.
>
> Fixes:
> - http://autobuild.buildroot.org/results/16e360cb91afff7655f459a3d1fb906ca48f8464
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
> ---
> Changes v1 -> v2:
> - Fix patch so that it applies on current master
Applied to master, thanks. However, as usual, I would prefer an
upstreamable solution that relies on changing the CMakeLists.txt so
that it checks if linking against libatomic is needed.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
More information about the buildroot
mailing list