mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-10-01 09:01:21 +00:00
mongodb: Fix build on ppc64le
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
e68935ce28
commit
2e9ce44813
@ -0,0 +1,18 @@
|
|||||||
|
Subject: [PATCH] stacktrace: Define ARCH_BITS for ppc64
|
||||||
|
|
||||||
|
src/mongo/util/stacktrace_somap.cpp:89:2: error: #error Unknown target architecture.
|
||||||
|
stacktrace_somap.cpp:92:33: error: 'ELFCLASSARCH_BITS' was not declared in this scope
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
--- a/src/mongo/util/stacktrace_somap.cpp
|
||||||
|
+++ b/src/mongo/util/stacktrace_somap.cpp
|
||||||
|
@@ -81,7 +81,7 @@ void addUnameToSoMap(BSONObjBuilder* soM
|
||||||
|
|
||||||
|
#if defined(__ELF_NATIVE_CLASS) // determine ARCH_BITS
|
||||||
|
#define ARCH_BITS __ELF_NATIVE_CLASS
|
||||||
|
-#elif defined(__x86_64__) || defined(__aarch64__)
|
||||||
|
+#elif defined(__x86_64__) || defined(__aarch64__) || defined(__powerpc64__)
|
||||||
|
#define ARCH_BITS 64
|
||||||
|
#elif defined(__i386__) || defined(__arm__)
|
||||||
|
#define ARCH_BITS 32
|
||||||
@ -29,6 +29,7 @@ SRC_URI = "git://github.com/mongodb/mongo.git;branch=v4.4 \
|
|||||||
file://0001-stacktrace-Define-ARCH_BITS-for-x86.patch \
|
file://0001-stacktrace-Define-ARCH_BITS-for-x86.patch \
|
||||||
file://0001-include-needed-c-header.patch \
|
file://0001-include-needed-c-header.patch \
|
||||||
file://disable_runtime_check.patch \
|
file://disable_runtime_check.patch \
|
||||||
|
file://ppc64_ARCH_BITS.patch \
|
||||||
"
|
"
|
||||||
SRC_URI_append_libc-musl ="\
|
SRC_URI_append_libc-musl ="\
|
||||||
file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \
|
file://0001-Mark-one-of-strerror_r-implementation-glibc-specific.patch \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user