mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-31 13:20:03 +00:00
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>
This commit is contained in:
@@ -23,6 +23,8 @@ SRC_URI[sha256sum] = "bbfcc88de502c39604878c395f516b03fff4eac63eb4f7f44c07d43383
|
|||||||
|
|
||||||
S = "${WORKDIR}/RCF-${PV}"
|
S = "${WORKDIR}/RCF-${PV}"
|
||||||
|
|
||||||
|
LDFLAGS += "-Wl,--as-needed -latomic -Wl,--no-as-needed"
|
||||||
|
|
||||||
inherit cmake dos2unix
|
inherit cmake dos2unix
|
||||||
|
|
||||||
PACKAGECONFIG ?= "zlib openssl sf-serialization boost-filesystem boost-asio protobuf json dll static shared demos"
|
PACKAGECONFIG ?= "zlib openssl sf-serialization boost-filesystem boost-asio protobuf json dll static shared demos"
|
||||||
|
|||||||
Reference in New Issue
Block a user