[packages/ClanLib] - sse2 is not quite getting disable with --disable-sse2

baggins baggins at pld-linux.org
Tue Nov 5 20:44:04 CET 2013


commit 345f9290e0528b2b6fc720f2df4d47b4ae4c10d4
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Nov 5 20:43:35 2013 +0100

    - sse2 is not quite getting disable with --disable-sse2

 ClanLib.spec              |  2 ++
 really-disable-sse2.patch | 27 +++++++++++++++++++++++++++
 2 files changed, 29 insertions(+)
---
diff --git a/ClanLib.spec b/ClanLib.spec
index 91a69a8..6b04e1d 100644
--- a/ClanLib.spec
+++ b/ClanLib.spec
@@ -20,6 +20,7 @@ Source0:	http://www.clanlib.org/download/releases-3.0/%{name}-%{version}.tgz
 # Source0-md5:	ebde34b9452a3b1d26cf81563f6ea62f
 Patch0:		%{name}-build.patch
 Patch1:		%{name}-link.patch
+Patch2:		really-disable-sse2.patch
 URL:		http://www.clanlib.org/
 BuildRequires:	OpenGL-GLU-devel
 BuildRequires:	alsa-lib-devel
@@ -217,6 +218,7 @@ Dokumentacja programisty do biblioteki ClanLib
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %{__rm} -r autom4te.cache
 
diff --git a/really-disable-sse2.patch b/really-disable-sse2.patch
new file mode 100644
index 0000000..33b89cf
--- /dev/null
+++ b/really-disable-sse2.patch
@@ -0,0 +1,27 @@
+--- ClanLib-3.0.0/configure.ac~	2013-11-05 19:52:09.000000000 +0100
++++ ClanLib-3.0.0/configure.ac	2013-11-05 20:42:25.891716845 +0100
+@@ -222,6 +222,7 @@
+ 		AC_MSG_RESULT([enabled])
+ 		use_sse2=yes
+ 	else
++		AC_DEFINE(DISABLE_SSE2)
+ 		AC_DEFINE(CL_DISABLE_SSE2)
+ 		AC_MSG_RESULT([disabled])
+ 	fi
+@@ -234,6 +235,7 @@
+ 		use_sse2=yes
+ 	else
+ 		AC_MSG_WARN( [ *** Compliler does not support SSE2 ])
++		AC_DEFINE(DISABLE_SSE2)
+ 		AC_DEFINE(CL_DISABLE_SSE2)
+ 		AC_MSG_RESULT([disabled])
+ 	fi
+@@ -248,7 +250,7 @@
+ 
+ 	extra_CFLAGS_clanCore="$extra_CFLAGS_clanCore -msse2"
+ else
+-	extra_CFLAGS_clanCore="$extra_CFLAGS_clanCore -DCL_DISABLE_SSE2"
++	extra_CFLAGS_clanCore="$extra_CFLAGS_clanCore -DCL_DISABLE_SSE2 -DDISABLE_SSE2"
+ fi
+ extra_CFLAGS_clanCore="$extra_CFLAGS_clanCore -pthread -std=c++0x"
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ClanLib.git/commitdiff/345f9290e0528b2b6fc720f2df4d47b4ae4c10d4



More information about the pld-cvs-commit mailing list