mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-22 23:07:10 -08:00
media-gfx/darktable: fix musl build error
Closes: https://bugs.gentoo.org/915596 Signed-off-by: Marek Szuba <marecki@gentoo.org>
This commit is contained in:
@@ -98,6 +98,7 @@ PATCHES=(
|
||||
"${FILESDIR}"/${PN}-3.4.0_jsonschema-automagic.patch
|
||||
"${FILESDIR}"/${PN}-3.4.1_libxcf-cmake.patch
|
||||
"${FILESDIR}"/${PN}-4.2.1_cmake-musl.patch
|
||||
"${FILESDIR}"/${PN}-4.4.2_fix-has-attribute-musl.patch
|
||||
)
|
||||
|
||||
S="${WORKDIR}/${P/_/~}"
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
--- a/src/common/darktable.h
|
||||
+++ b/src/common/darktable.h
|
||||
@@ -140,7 +140,7 @@ extern "C" {
|
||||
/* Create cloned functions for various CPU SSE generations */
|
||||
/* See for instructions https://hannes.hauswedell.net/post/2017/12/09/fmv/ */
|
||||
/* TL;DR : use only on SIMD functions containing low-level paralellized/vectorized loops */
|
||||
-#if __has_attribute(target_clones) && !defined(_WIN32) && !defined(NATIVE_ARCH)
|
||||
+#if __has_attribute(target_clones) && !defined(_WIN32) && !defined(NATIVE_ARCH) && defined(__GLIBC__)
|
||||
# if defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__x86_64)
|
||||
#define __DT_CLONE_TARGETS__ __attribute__((target_clones("default", "sse2", "sse3", "sse4.1", "sse4.2", "popcnt", "avx", "avx2", "avx512f", "fma4")))
|
||||
# elif defined(__PPC64__)
|
||||
Reference in New Issue
Block a user