package/leveldb: link with libatomic when needed
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Tue, 29 Oct 2019 16:25:27 +0000 (17:25 +0100)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Tue, 29 Oct 2019 21:23:46 +0000 (22:23 +0100)
commit5e637981702d915c3342f71d9e62b17115a9f5cf
tree1a457913d7ca3586141144fc291b73a32ce0e90a
parent6646b220af9db55933dbf4d264f47b9c42de1d3b
package/leveldb: link with libatomic when needed

On some architectures, atomic operations 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: libleveldb.so.1.22.0: undefined reference to `__atomic_fetch_sub_4'

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

Fixes:
 - http://autobuild.buildroot.net/results/257a820bb87a874ce0e2152d2752845be972fabe

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/leveldb/leveldb.mk