mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-04-20 23:48:20 +00:00
librcf: link to libatomic
In commit 1d594f18f6:
[ librcf: 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 -lrcf.
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:
@@ -53,7 +53,7 @@ index 0000000..f6e24be
|
||||
+####################################################################
|
||||
+INCLUDE (${CMAKE_SOURCE_DIR}/VERSION.cmake)
|
||||
+
|
||||
+SET (LIBRCF_LIBRARIES "-lpthread -ldl")
|
||||
+SET (LIBRCF_LIBRARIES "-lpthread -ldl -latomic")
|
||||
+INCLUDE_DIRECTORIES (${CMAKE_SOURCE_DIR}/include)
|
||||
+
|
||||
+IF (LIBRCF_USE_OPENSSL)
|
||||
|
||||
@@ -23,8 +23,6 @@ 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"
|
||||
|
||||
Reference in New Issue
Block a user