aboutsummaryrefslogtreecommitdiffstats
path: root/community/darktable/fix-has-attribute-musl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/darktable/fix-has-attribute-musl.patch')
-rw-r--r--community/darktable/fix-has-attribute-musl.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/darktable/fix-has-attribute-musl.patch b/community/darktable/fix-has-attribute-musl.patch
new file mode 100644
index 00000000000..07bcc7d3645
--- /dev/null
+++ b/community/darktable/fix-has-attribute-musl.patch
@@ -0,0 +1,13 @@
+Fixes: error: the call requires 'ifunc', which is not supported by this target
+
+--- a/src/common/darktable.h
++++ b/src/common/darktable.h
+@@ -127,7 +127,7 @@
+ /* 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__)