aboutsummaryrefslogtreecommitdiff
blob: f6a474acfd24d2c6093742a4b5d0693dd959417a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From 7601d97268bf5f63f7e53d9c114fe439dcc46b0d Mon Sep 17 00:00:00 2001
From: Markus Meier <maekke@gentoo.org>
Date: Fri, 21 Jun 2024 20:35:33 +0200
Subject: [PATCH] fix musl build

See https://bugs.gentoo.org/915596
---
 src/common/darktable.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/common/darktable.h b/src/common/darktable.h
index a62fd402fe..4d0d571b2b 100644
--- a/src/common/darktable.h
+++ b/src/common/darktable.h
@@ -150,7 +150,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) && !defined(__APPLE__)
+#if __has_attribute(target_clones) && !defined(_WIN32) && !defined(NATIVE_ARCH) && !defined(__APPLE__) && 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__)
-- 
2.44.2