aboutsummaryrefslogtreecommitdiff
path: root/misc/free42/files/patch-gtk_build-intel-lib.sh
diff options
context:
space:
mode:
Diffstat (limited to 'misc/free42/files/patch-gtk_build-intel-lib.sh')
-rw-r--r--misc/free42/files/patch-gtk_build-intel-lib.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/misc/free42/files/patch-gtk_build-intel-lib.sh b/misc/free42/files/patch-gtk_build-intel-lib.sh
new file mode 100644
index 000000000000..a7d873ad9e8f
--- /dev/null
+++ b/misc/free42/files/patch-gtk_build-intel-lib.sh
@@ -0,0 +1,26 @@
+--- gtk/build-intel-lib.sh.orig 2021-03-05 01:52:42 UTC
++++ gtk/build-intel-lib.sh
+@@ -43,6 +43,8 @@ fi
+
+ tar xvfz ../inteldecimal/IntelRDFPMathLib20U1.tar.gz
+ cd IntelRDFPMathLib20U1
++sed -i '' -e 's/\r//g' LIBRARY/src/bid_functions.h
++patch -p0 <../intel-lib-freebsd.patch
+ patch -p0 <../intel-lib-linux.patch
+
+ # When building for architectures other than x86 or x86_64, I remove the
+@@ -55,11 +58,11 @@ patch -p0 <../intel-lib-linux.patch
+ # it to x86_64 works when targeting arm64, a 64-bit platform.
+ # Of course, proceed with caution. Your mileage may vary.
+
+-case `uname -m` in
+- armv7|armv7l|ppc)
++case `uname -p` in
++ armv6|armv7|armv7l|ppc|powerpc|powerpcspe|mips)
+ patch -p0 <../intel-lib-unknown-32bit.patch
+ ;;
+- aarch64|arm64|i86pc)
++ aarch64|arm64|i86pc|powerpc64|powerpc64le|mips64|riscv64)
+ patch -p0 <../intel-lib-unknown-64bit.patch
+ ;;
+ esac