forked from mirrors/nixpkgs
pixman: patch for clang36
This commit is contained in:
parent
69d02b71a0
commit
0bfce5bb4a
|
@ -14,6 +14,8 @@ stdenv.mkDerivation rec {
|
|||
|
||||
postInstall = glib.flattenInclude;
|
||||
|
||||
patches = stdenv.lib.optional (stdenv.cc.cc.isClang or false) ./fix-clang36.patch;
|
||||
|
||||
meta = {
|
||||
homepage = http://pixman.org;
|
||||
description = "A low-level library for pixel manipulation";
|
||||
|
|
11
pkgs/development/libraries/pixman/fix-clang36.patch
Normal file
11
pkgs/development/libraries/pixman/fix-clang36.patch
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- a/pixman/pixman-mmx.c 2014-04-24 08:34:14.000000000 +0400
|
||||
+++ b/pixman/pixman-mmx.c 2015-01-30 20:19:28.000000000 +0300
|
||||
@@ -89,7 +89,7 @@
|
||||
return __A;
|
||||
}
|
||||
|
||||
-# ifdef __OPTIMIZE__
|
||||
+# if defined(__OPTIMIZE__) && !(defined (__clang__) && defined(__clang_major__) && defined(__clang_minor__) && __clang_major__ == 3 && __clang_minor__ >= 6)
|
||||
extern __inline __m64 __attribute__((__gnu_inline__, __always_inline__, __artificial__))
|
||||
_mm_shuffle_pi16 (__m64 __A, int8_t const __N)
|
||||
{
|
Loading…
Reference in a new issue