mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-04 14:39:54 +00:00
mariadb: Fix build with clang/musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
@@ -23,6 +23,7 @@ SRC_URI = "https://downloads.mariadb.org/interstitial/${BP}/source/${BP}.tar.gz
|
|||||||
file://sys_futex.patch \
|
file://sys_futex.patch \
|
||||||
file://cross-compiling.patch \
|
file://cross-compiling.patch \
|
||||||
file://ssize_t.patch \
|
file://ssize_t.patch \
|
||||||
|
file://mm_malloc.patch \
|
||||||
"
|
"
|
||||||
SRC_URI_append_libc-musl = " file://ppc-remove-glibc-dep.patch"
|
SRC_URI_append_libc-musl = " file://ppc-remove-glibc-dep.patch"
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,11 @@
|
|||||||
|
--- a/storage/rocksdb/rocksdb/port/jemalloc_helper.h
|
||||||
|
+++ b/storage/rocksdb/rocksdb/port/jemalloc_helper.h
|
||||||
|
@@ -5,7 +5,7 @@
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
-#if defined(__clang__)
|
||||||
|
+#if defined(__clang__) && defined(__GLIBC__)
|
||||||
|
// glibc's `posix_memalign()` declaration specifies `throw()` while clang's
|
||||||
|
// declaration does not. There is a hack in clang to make its re-declaration
|
||||||
|
// compatible with glibc's if they are declared consecutively. That hack breaks
|
||||||
Reference in New Issue
Block a user