From 45b68b5e89e82c8237a5b028f7c1596a905f95fe Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 27 Aug 2021 04:25:35 +0200 Subject: Fixing baseline violations on armel and i386, thanks to Adrian Bunk (Closes: #993010). Signed-off-by: Daniel Baumann --- debian/patches/debian/0001-cc-builtins.patch | 17 +++++++++++++++++ debian/patches/debian/0002-disable-sse.patch | 23 +++++++++++++++++++++++ debian/patches/series | 2 ++ 3 files changed, 42 insertions(+) create mode 100644 debian/patches/debian/0001-cc-builtins.patch create mode 100644 debian/patches/debian/0002-disable-sse.patch create mode 100644 debian/patches/series (limited to 'debian/patches') diff --git a/debian/patches/debian/0001-cc-builtins.patch b/debian/patches/debian/0001-cc-builtins.patch new file mode 100644 index 0000000..0d0cafc --- /dev/null +++ b/debian/patches/debian/0001-cc-builtins.patch @@ -0,0 +1,17 @@ +Author: Adrian Bunk +Description: Fix USE_CC_BUILTINS. + +diff -Naurp ck.orig/configure ck/configure +--- ck.orig/configure ++++ ck/configure +@@ -551,8 +551,8 @@ else + fi + + if test "$USE_CC_BUILTINS"; then +- CFLAGS="$CFLAGS -DCK_CC_BUILTINS" +- PC_CFLAGS="-DCK_CC_BULITINS" ++ CFLAGS="$CFLAGS -DCK_USE_CC_BUILTINS=1" ++ PC_CFLAGS="-DCK_USE_CC_BUILTINS=1" + fi + + # `which` on Solaris sucks 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 +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 diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..e1dc10d --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +debian/0001-cc-builtins.patch +debian/0002-disable-sse.patch -- cgit v1.2.3