aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMing Liu <peter.x.liu@external.atlascopco.com>2017-08-10 17:12:15 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2017-08-13 13:21:04 +0200
commitac2a6d2b5d69937577effcb8bb2149651bac0176 (patch)
treecf547e37e9490e61f77290f3611f5867d0b8cc0c
parentc1dcc40915d9ea7433881f4b47b7d838800ea626 (diff)
downloadmeta-openembedded-contrib-ac2a6d2b5d69937577effcb8bb2149651bac0176.tar.gz
meta-openembedded-contrib-ac2a6d2b5d69937577effcb8bb2149651bac0176.tar.bz2
meta-openembedded-contrib-ac2a6d2b5d69937577effcb8bb2149651bac0176.zip
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>
-rw-r--r--meta-oe/recipes-devtools/json-spirit/json-spirit_4.08.bb2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/json-spirit/json-spirit_4.08.bb b/meta-oe/recipes-devtools/json-spirit/json-spirit_4.08.bb
index 53bbf7eee4..2f456bf64d 100644
--- a/meta-oe/recipes-devtools/json-spirit/json-spirit_4.08.bb
+++ b/meta-oe/recipes-devtools/json-spirit/json-spirit_4.08.bb
@@ -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"