]> git.pld-linux.org Git - packages/ClanLib.git/commitdiff
- sse2 is not quite getting disable with --disable-sse2
authorJan Rękorajski <baggins@pld-linux.org>
Tue, 5 Nov 2013 19:43:35 +0000 (20:43 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Tue, 5 Nov 2013 19:43:35 +0000 (20:43 +0100)
ClanLib.spec
really-disable-sse2.patch [new file with mode: 0644]

index 91a69a819ce02032be9ddd690ca10a59f9b60198..6b04e1d64fae660d31827175760703468a89869f 100644 (file)
@@ -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 (file)
index 0000000..33b89cf
--- /dev/null
@@ -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"
This page took 0.063331 seconds and 4 git commands to generate.