mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
json-spirit: Add -latomic to LDFLAGS
This fixes following errors when compiling with clang: | ../json_spirit/libjson_spirit.so.4.0.8: error: undefined reference to '__atomic_load_4' | ../json_spirit/libjson_spirit.so.4.0.8: error: undefined reference to '__atomic_compare_exchange_4' | ../json_spirit/libjson_spirit.so.4.0.8: error: undefined reference to '__atomic_fetch_sub_4' | ../json_spirit/libjson_spirit.so.4.0.8: error: undefined reference to '__atomic_fetch_add_4' Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> (cherry picked from commit ac2a6d2b5d69937577effcb8bb2149651bac0176) Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
parent
4b01e200eb
commit
a7ec955470
@ -17,6 +17,8 @@ S = "${WORKDIR}/json_spirit_v${PV}"
|
||||
|
||||
DEPENDS = "boost"
|
||||
|
||||
LDFLAGS += "-Wl,--as-needed -latomic -Wl,--no-as-needed"
|
||||
|
||||
inherit cmake
|
||||
|
||||
FILES_${PN}-dev += "${datadir}/cmake/Modules/FindLibJsonSpirit.cmake"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user