mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-04-02 02:49:12 +00:00
mariadb: Fix build with clang/musl
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
de60098b87
commit
abbca30bd6
@ -23,6 +23,7 @@ SRC_URI = "https://downloads.mariadb.org/interstitial/${BP}/source/${BP}.tar.gz
|
||||
file://sys_futex.patch \
|
||||
file://cross-compiling.patch \
|
||||
file://ssize_t.patch \
|
||||
file://mm_malloc.patch \
|
||||
"
|
||||
SRC_URI_append_libc-musl = " file://ppc-remove-glibc-dep.patch"
|
||||
|
||||
|
||||
11
meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch
Normal file
11
meta-oe/recipes-dbs/mysql/mariadb/mm_malloc.patch
Normal file
@ -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
|
||||
Loading…
x
Reference in New Issue
Block a user