diff options
author | Marek Szuba <marecki@gentoo.org> | 2023-10-22 11:53:24 +0100 |
---|---|---|
committer | Marek Szuba <marecki@gentoo.org> | 2023-10-22 12:03:36 +0100 |
commit | 3b2025ac27d01c123701173faec2bd429fd7fb57 (patch) | |
tree | d4effefad52313b9358173009d7dc39646b63607 /media-gfx/darktable/files | |
parent | app-text/htmltidy: add upstream fix for <ol> attribute "type" in HTML5 (diff) | |
download | gentoo-3b2025ac27d01c123701173faec2bd429fd7fb57.tar.gz gentoo-3b2025ac27d01c123701173faec2bd429fd7fb57.tar.bz2 gentoo-3b2025ac27d01c123701173faec2bd429fd7fb57.zip |
media-gfx/darktable: fix musl build error
Closes: https://bugs.gentoo.org/915596
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'media-gfx/darktable/files')
-rw-r--r-- | media-gfx/darktable/files/darktable-4.4.2_fix-has-attribute-musl.patch | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/media-gfx/darktable/files/darktable-4.4.2_fix-has-attribute-musl.patch b/media-gfx/darktable/files/darktable-4.4.2_fix-has-attribute-musl.patch new file mode 100644 index 000000000000..0aad42605c9e --- /dev/null +++ b/media-gfx/darktable/files/darktable-4.4.2_fix-has-attribute-musl.patch @@ -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__) |