summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/json-spirit/json-spirit_4.08.bb
diff options
context:
space:
mode:
authorMing Liu <peter.x.liu@external.atlascopco.com>2017-08-30 17:15:28 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2017-09-07 10:59:20 +0200
commitffc78c155c36c657c4648ee303f108b164fef4b8 (patch)
tree59e7d2b3227887cbb038e224a4b282066612dfe5 /meta-oe/recipes-devtools/json-spirit/json-spirit_4.08.bb
parent7c6a47177c1c9e61fc3e26098277786563c575af (diff)
downloadmeta-openembedded-ffc78c155c36c657c4648ee303f108b164fef4b8.tar.gz
json-spirit: link to libatomic
In commit ac2a6d2b5d69937577effcb8bb2149651bac0176: [ json-spirit: Add -latomic to LDFLAGS ] I added '-latomic' to LDFLAGS, which worked for clang 3.9 but it does not work for clang 5.0, seems the linking order matters for clang 5.0, it should be after -ljson_spirit. Signed-off-by: Ming Liu <peter.x.liu@external.atlascopco.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools/json-spirit/json-spirit_4.08.bb')
-rw-r--r--meta-oe/recipes-devtools/json-spirit/json-spirit_4.08.bb3
1 files changed, 1 insertions, 2 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 2f456bf64..c7c1ad1ec 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
@@ -11,14 +11,13 @@ LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=278ef6183dec4aae1524fccc4b0113c9"
11 11
12SRC_URI = "file://json_spirit_v${PV}.zip \ 12SRC_URI = "file://json_spirit_v${PV}.zip \
13 file://0001-Adjust-the-cmake-files.patch \ 13 file://0001-Adjust-the-cmake-files.patch \
14 file://0001-Link-to-libatomic.patch \
14" 15"
15 16
16S = "${WORKDIR}/json_spirit_v${PV}" 17S = "${WORKDIR}/json_spirit_v${PV}"
17 18
18DEPENDS = "boost" 19DEPENDS = "boost"
19 20
20LDFLAGS += "-Wl,--as-needed -latomic -Wl,--no-as-needed"
21
22inherit cmake 21inherit cmake
23 22
24FILES_${PN}-dev += "${datadir}/cmake/Modules/FindLibJsonSpirit.cmake" 23FILES_${PN}-dev += "${datadir}/cmake/Modules/FindLibJsonSpirit.cmake"