package/sysrepo: link with libatomic when needed
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Thu, 31 Oct 2019 13:15:05 +0000 (14:15 +0100)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Thu, 31 Oct 2019 21:19:34 +0000 (22:19 +0100)
commit933cf85aa6a7e0ed916acd21a9564df851cb2051
tree9f5e4907756383428e013bb89e0ed00ee4d0dc64
parent6233776a264b473ab7d22347513a0366349c10d7
package/sysrepo: link with libatomic when needed

On some architectures, atomic binutils are provided by the libatomic
library from gcc. Linking with libatomic is therefore necessary,
otherwise the build fails with:

/home/buildroot/autobuild/instance-2/output-1/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/7.4.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: libsysrepo.so.0.7.8: undefined reference to `__atomic_fetch_add_4'

This is often for example the case on sparcv8 32 bit.

Fixes:
 - http://autobuild.buildroot.org/results/d807f3dc922a61e099a66de3bc340c018a86e150

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/sysrepo/sysrepo.mk