mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-01 13:40:04 +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>
This commit is contained in:
@@ -17,6 +17,8 @@ S = "${WORKDIR}/json_spirit_v${PV}"
|
|||||||
|
|
||||||
DEPENDS = "boost"
|
DEPENDS = "boost"
|
||||||
|
|
||||||
|
LDFLAGS += "-Wl,--as-needed -latomic -Wl,--no-as-needed"
|
||||||
|
|
||||||
inherit cmake
|
inherit cmake
|
||||||
|
|
||||||
FILES_${PN}-dev += "${datadir}/cmake/Modules/FindLibJsonSpirit.cmake"
|
FILES_${PN}-dev += "${datadir}/cmake/Modules/FindLibJsonSpirit.cmake"
|
||||||
|
|||||||
Reference in New Issue
Block a user