mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-05-30 13:00:02 +00:00
glog: Link with libatomics on mips.
Mips does not have 64bit atomic builtins therefore link with libatomic we might need same for armv5 and ppc32 too. Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -17,15 +17,18 @@ S = "${WORKDIR}/git"
|
|||||||
|
|
||||||
inherit cmake
|
inherit cmake
|
||||||
|
|
||||||
PACKAGECONFIG ?= "shared unwind"
|
PACKAGECONFIG ?= "shared unwind 64bit-atomics"
|
||||||
PACKAGECONFIG:remove:riscv64 = "unwind"
|
PACKAGECONFIG:remove:riscv64 = "unwind"
|
||||||
PACKAGECONFIG:remove:riscv32 = "unwind"
|
PACKAGECONFIG:remove:riscv32 = "unwind"
|
||||||
|
PACKAGECONFIG:remove:mipsarch = "64bit-atomics"
|
||||||
|
|
||||||
PACKAGECONFIG:append:libc-musl:riscv64 = " execinfo"
|
PACKAGECONFIG:append:libc-musl:riscv64 = " execinfo"
|
||||||
PACKAGECONFIG:append:libc-musl:riscv32 = " execinfo"
|
PACKAGECONFIG:append:libc-musl:riscv32 = " execinfo"
|
||||||
|
|
||||||
PACKAGECONFIG[unwind] = "-DWITH_UNWIND=ON,-DWITH_UNWIND=OFF,libunwind,libunwind"
|
PACKAGECONFIG[unwind] = "-DWITH_UNWIND=ON,-DWITH_UNWIND=OFF,libunwind,libunwind"
|
||||||
PACKAGECONFIG[execinfo] = ",,libexecinfo"
|
PACKAGECONFIG[execinfo] = ",,libexecinfo"
|
||||||
PACKAGECONFIG[shared] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF,,"
|
PACKAGECONFIG[shared] = "-DBUILD_SHARED_LIBS=ON,-DBUILD_SHARED_LIBS=OFF,,"
|
||||||
|
PACKAGECONFIG[64bit-atomics] = ",-DCMAKE_CXX_STANDARD_LIBRARIES='-latomic',,"
|
||||||
|
|
||||||
do_configure:append() {
|
do_configure:append() {
|
||||||
# remove WORKDIR info to improve reproducibility
|
# remove WORKDIR info to improve reproducibility
|
||||||
|
|||||||
Reference in New Issue
Block a user