audio/cardinal: fix build on powerpc64le

This commit is contained in:
Piotr Kubaj 2023-08-19 16:04:07 +00:00
parent c31fe5ed6e
commit ff044512fb
2 changed files with 12 additions and 0 deletions

View file

@ -30,6 +30,7 @@ USE_GL= gl
SHEBANG_GLOB= *.sh
CXXFLAGS+= -I${LOCALBASE}/include/pffft
CXXFLAGS_powerpc64le= -DNO_WARN_X86_INTRINSICS
LDFLAGS+= -lpffft
MAKE_ENV= LD_PRELOAD=/usr/lib/libpthread.so # workaround for https://github.com/DISTRHO/Cardinal/issues/128#issuecomment-1030817359

View file

@ -0,0 +1,11 @@
--- include/neon-compat/pmmintrin.h.orig 2023-08-16 16:08:02 UTC
+++ include/neon-compat/pmmintrin.h
@@ -17,7 +17,7 @@
#pragma once
-#if defined(__i386__) || defined(__x86_64__) || defined(__EMSCRIPTEN__)
+#if defined(__i386__) || defined(__x86_64__) || defined(__EMSCRIPTEN__) || defined(__powerpc64__)
# include_next <pmmintrin.h>
#else
# include "../sse2neon/sse2neon.h"