[packages/DirectFB] - fix register usage in asm code on x32
baggins
baggins at pld-linux.org
Mon Mar 9 18:37:20 CET 2015
commit 11d9c8d2466da7496c441ad46a34d25d99acd093
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Mon Mar 9 18:37:02 2015 +0100
- fix register usage in asm code on x32
DirectFB.spec | 4 +++-
x32-asm.patch | 29 +++++++++++++++++++++++++++++
2 files changed, 32 insertions(+), 1 deletion(-)
---
diff --git a/DirectFB.spec b/DirectFB.spec
index 005a905..c65bf4f 100644
--- a/DirectFB.spec
+++ b/DirectFB.spec
@@ -25,7 +25,7 @@ Summary: DirectFB - Hardware graphics acceleration
Summary(pl.UTF-8): DirectFB - Wspomaganie grafiki
Name: DirectFB
Version: 1.7.6
-Release: 3
+Release: 3.1
Epoch: 1
License: LGPL v2+
Group: Libraries
@@ -45,6 +45,7 @@ Patch8: %{name}-missing.patch
Patch9: %{name}-ffmpeg.patch
Patch10: %{name}-libmpeg3.patch
Patch11: %{name}-format.patch
+Patch12: x32-asm.patch
URL: http://www.directfb.org/
BuildRequires: Mesa-libEGL-devel
BuildRequires: Mesa-libGLES-devel
@@ -937,6 +938,7 @@ Statyczna biblioteka sawman.
%patch9 -p1
%patch10 -p1
%patch11 -p1
+%patch12 -p1
# video drivers
%{__sed} -i -e 's/checkfor_\(cle266\|cyber5k\|radeon\|savage\|unichrome\|vmware\)=no/checkfor_\1=yes/' configure.in
diff --git a/x32-asm.patch b/x32-asm.patch
new file mode 100644
index 0000000..8f2d63e
--- /dev/null
+++ b/x32-asm.patch
@@ -0,0 +1,29 @@
+--- /home/users/baggins/devel/PLD/rpm/BUILD/DirectFB-1.7.6/lib/dvc/dvc_mmx.h~ 2013-12-19 01:16:24.000000000 +0100
++++ /home/users/baggins/devel/PLD/rpm/BUILD/DirectFB-1.7.6/lib/dvc/dvc_mmx.h 2015-03-09 18:30:30.315841777 +0100
+@@ -323,7 +323,7 @@
+ "movd %2, %%mm4\n\t"
+ "shr $16, %%eax\n\t"
+ "punpcklwd %%mm4, %%mm4\n\t"
+-#ifdef ARCH_X86_64
++#if defined(ARCH_X86_64) && !defined(__ILP32__)
+ "movq (%3,%%rax,4), %%mm0\n\t"
+ #else
+ "movq (%3,%%eax,4), %%mm0\n\t"
+@@ -336,7 +336,7 @@
+ "movd %2, %%mm5\n\t"
+ "shr $16, %%eax\n\t"
+ "punpcklwd %%mm5, %%mm5\n\t"
+-#ifdef ARCH_X86_64
++#if defined(ARCH_X86_64) && !defined(__ILP32__)
+ "movq (%3,%%rax,4), %%mm2\n\t"
+ #else
+ "movq (%3,%%eax,4), %%mm2\n\t"
+@@ -369,7 +369,7 @@
+ "movd %2, %%mm4\n\t"
+ "shr $16, %2\n\t"
+ "punpcklwd %%mm4, %%mm4\n\t"
+-#ifdef ARCH_X86_64
++#if defined(ARCH_X86_64) && !defined(__ILP32__)
+ "movq (%3,%q2,4), %%mm0\n\t"
+ #else
+ "movq (%3,%2,4), %%mm0\n\t"
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/DirectFB.git/commitdiff/11d9c8d2466da7496c441ad46a34d25d99acd093
More information about the pld-cvs-commit
mailing list