[oe-commits] [meta-openembedded] 39/39: librcf: Add -latomic to LDFLAGS
git at git.openembedded.org
git at git.openembedded.org
Sun Aug 13 11:30:05 UTC 2017
This is an automated email from the git hooks/post-receive script.
martin_jansa pushed a commit to branch master-next
in repository meta-openembedded.
commit 7ce110038f86fca325c07e63e16b9627f23c9afe
Author: Ming Liu <peter.x.liu at external.atlascopco.com>
AuthorDate: Fri Aug 11 04:20:12 2017 +0200
librcf: Add -latomic to LDFLAGS
This fixes following errors when compiling with clang:
| src/librcf.so.2.2.0: error: undefined reference to '__atomic_load_4'
| src/librcf.so.2.2.0: error: undefined reference to '__atomic_compare_exchange_4'
| /usr/include/boost/smart_ptr/detail/sp_counted_base_clang.hpp:36: error: undefined reference to '__atomic_fetch_sub_4'
| /usr/include/boost/smart_ptr/detail/sp_counted_base_clang.hpp:31: error: undefined reference to '__atomic_fetch_add_4'
Signed-off-by: Ming Liu <peter.x.liu at external.atlascopco.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb b/meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb
index 43eff72..46b75c5 100644
--- a/meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb
+++ b/meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb
@@ -23,6 +23,8 @@ SRC_URI[sha256sum] = "bbfcc88de502c39604878c395f516b03fff4eac63eb4f7f44c07d43383
S = "${WORKDIR}/RCF-${PV}"
+LDFLAGS += "-Wl,--as-needed -latomic -Wl,--no-as-needed"
+
inherit cmake dos2unix
PACKAGECONFIG ?= "zlib openssl sf-serialization boost-filesystem boost-asio protobuf json dll static shared demos"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list