summaryrefslogtreecommitdiff
path: root/devel/liboil/patches/patch-aa
blob: ec8aad561ba6eae92746c1dc0b84be1907c8926f (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
27
28
29
30
31
$NetBSD: patch-aa,v 1.12 2010/02/07 16:12:25 wiz Exp $

The first patch fixes the build under Mac OS X PowerPC, see here:

https://bugs.freedesktop.org/show_bug.cgi?id=20815

--- configure.orig	2010-02-04 20:36:06.000000000 +0000
+++ configure
@@ -11586,6 +11586,12 @@ int
 main ()
 {
 
+#ifdef __APPLE__
+#ifdef __ppc__
+#error Assembler support is broken under Mac OS X PowerPC.
+#endif
+#endif
+
 #ifndef __GNUC__
 #error Not GCC
 #endif
@@ -13652,6 +13658,9 @@ main ()
 #error GCC before 4.2 has critical bugs compiling SSE2 intrinsics
 #endif
 #endif
+#ifdef __SUNPRO_C
+#error Sun Studio SSE2 intrinsics support does not work for this package
+#endif
 __m128i a; a = _mm_setzero_si128(); a = _mm_srli_epi16(a,8)
   ;
   return 0;