summaryrefslogtreecommitdiffstats
path: root/debian/patches/debian/0002-disable-sse.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/debian/0002-disable-sse.patch')
-rw-r--r--debian/patches/debian/0002-disable-sse.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/debian/patches/debian/0002-disable-sse.patch b/debian/patches/debian/0002-disable-sse.patch
new file mode 100644
index 0000000..1a19128
--- /dev/null
+++ b/debian/patches/debian/0002-disable-sse.patch
@@ -0,0 +1,23 @@
+Author: Adrian Bunk <bunk@debian.org>
+Description: Don't pass -msse -msse2 with --disable-sse on x86.
+
+diff -Naurp ck.orig/build/ck.build.x86 ck/build/ck.build.x86
+--- ck.orig/build/ck.build.x86
++++ ck/build/ck.build.x86
+@@ -1,2 +1,2 @@
+-CFLAGS+=-m32 -D__x86__ -msse -msse2
++CFLAGS+=-m32 -D__x86__
+ LDFLAGS+=-m32
+diff -Naurp ck.orig/configure ck/configure
+--- ck.orig/configure
++++ ck/configure
+@@ -424,6 +424,9 @@ case $PLATFORM in
+ LDFLAGS="-m64 $LDFLAGS"
+ ;;
+ i386|i486|i586|i686|i586_i686|pentium*|athlon*|k5|k6|k6_2|k6_3)
++ if test "${SSE_DISABLE}" = "CK_MD_SSE_ENABLE"; then
++ CFLAGS="$CFLAGS -msse -msse2"
++ fi
+ LSE_ENABLE="CK_MD_LSE_DISABLE"
+ MM="${MM:-"CK_MD_TSO"}"
+ case $SYSTEM in