mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-02 11:09:29 +00:00
Fix the build with clang.
PR: ports/163518 Submitted by: Jan Beich <jbeich@tormail.net> Feature safe: yes
This commit is contained in:
parent
6c70c5f94b
commit
78dc195ea9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=293393
@ -38,4 +38,8 @@ CONFIGURE_ARGS+=--disable-mmx \
|
||||
--disable-altivec
|
||||
.endif
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|x86_64|amd64|g' \
|
||||
${WRKSRC}/configure
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
28
x11/babl/files/patch-sse-fixups.c
Normal file
28
x11/babl/files/patch-sse-fixups.c
Normal file
@ -0,0 +1,28 @@
|
||||
--- extensions/sse-fixups.c~
|
||||
+++ extensions/sse-fixups.c
|
||||
@@ -23,6 +23,8 @@
|
||||
|
||||
#if defined(__GNUC__) && (__GNUC__ >= 4) && defined(USE_SSE) && defined(USE_MMX)
|
||||
|
||||
+#include <xmmintrin.h>
|
||||
+
|
||||
#include <stdint.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
@@ -40,11 +42,11 @@ typedef int g2int __attribute__ ((ve
|
||||
#define g4float_zero g4float_all(0.0)
|
||||
#define g4float_ff g4float_all(255.0)
|
||||
|
||||
-#define g4float_max(a,b) __builtin_ia32_maxps(a, b)
|
||||
-#define g4float_min(a,b) __builtin_ia32_minps(a, b)
|
||||
-#define g4float_cvt2pi(a) __builtin_ia32_cvtps2pi(a)
|
||||
-#define g4float_movhl(a,b) __builtin_ia32_movhlps(a, b)
|
||||
-#define g4float_emms __builtin_ia32_emms
|
||||
+#define g4float_max(a,b) _mm_max_ps(a, b)
|
||||
+#define g4float_min(a,b) _mm_min_ps(a, b)
|
||||
+#define g4float_cvt2pi(a) _mm_cvtps_pi32(a)
|
||||
+#define g4float_movhl(a,b) _mm_movehl_ps(a, b)
|
||||
+#define g4float_emms _mm_empty
|
||||
|
||||
|
||||
static INLINE long
|
Loading…
x
Reference in New Issue
Block a user