diff options
author | Ming Liu <peter.x.liu@external.atlascopco.com> | 2017-08-11 04:20:12 +0200 |
---|---|---|
committer | Martin Jansa <Martin.Jansa@gmail.com> | 2017-08-28 11:04:11 +0200 |
commit | 1d594f18f66700f0b2c03b7acf1104a825b155b4 (patch) | |
tree | 616eb0692dbfeadfd0db6f6959bb781e32033075 /meta-oe/recipes-devtools | |
parent | 6f4aae7cbc1931442aa79b1f64bb892c4acb97fb (diff) | |
download | meta-openembedded-1d594f18f66700f0b2c03b7acf1104a825b155b4.tar.gz |
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@external.atlascopco.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-devtools')
-rw-r--r-- | meta-oe/recipes-devtools/librcf/librcf_2.2.0.0.bb | 2 |
1 files changed, 2 insertions, 0 deletions
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 43eff72a3..46b75c514 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 | |||
23 | 23 | ||
24 | S = "${WORKDIR}/RCF-${PV}" | 24 | S = "${WORKDIR}/RCF-${PV}" |
25 | 25 | ||
26 | LDFLAGS += "-Wl,--as-needed -latomic -Wl,--no-as-needed" | ||
27 | |||
26 | inherit cmake dos2unix | 28 | inherit cmake dos2unix |
27 | 29 | ||
28 | PACKAGECONFIG ?= "zlib openssl sf-serialization boost-filesystem boost-asio protobuf json dll static shared demos" | 30 | PACKAGECONFIG ?= "zlib openssl sf-serialization boost-filesystem boost-asio protobuf json dll static shared demos" |