aboutsummaryrefslogtreecommitdiffstats
path: root/community/drawterm/fix-mips-build.patch
diff options
context:
space:
mode:
authorinfo@mobile-stream.com <info@mobile-stream.com>2018-11-28 07:01:20 +0000
committerLeonardo Arena <rnalrd@alpinelinux.org>2018-11-30 13:10:00 +0000
commit955c1fb83c58dcd07e633ced57578a783201f5ed (patch)
treeb1a56333ef4aa2c7e39bba742bf8067de6d1cfc7 /community/drawterm/fix-mips-build.patch
parent529f7d454f589f120f2bcc1c2fd5eeb42afe324f (diff)
downloadaports-955c1fb83c58dcd07e633ced57578a783201f5ed.tar.bz2
aports-955c1fb83c58dcd07e633ced57578a783201f5ed.tar.xz
community/drawterm: fix build on mips*
Do not bump pkgrel since only strictly mips-specific files were changed and no previously built mips* apks exist.
Diffstat (limited to 'community/drawterm/fix-mips-build.patch')
-rw-r--r--community/drawterm/fix-mips-build.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/community/drawterm/fix-mips-build.patch b/community/drawterm/fix-mips-build.patch
new file mode 100644
index 0000000000..8efd801626
--- /dev/null
+++ b/community/drawterm/fix-mips-build.patch
@@ -0,0 +1,37 @@
+--- a/posix-mips/Makefile
++++ b/posix-mips/Makefile
+@@ -15,4 +15,4 @@
+
+ tas.$O: tas.s
+ ln -sf tas.s tas.S
+- $(CC) -c -o tas.$O -mips3 tas.S
++ $(CC) -c -o tas.$O tas.S
+--- a/posix-mips/tas.s
++++ b/posix-mips/tas.s
+@@ -1,19 +1,17 @@
+-#include <machine/regdef.h>
+-
+ .globl tas
+ .ent tas 2
+
+ tas:
+ .set noreorder
+ 1:
+- ori t1, zero, 12345 /* t1 = 12345 */
+- ll t0, (a0) /* t0 = *a0 */
+- sc t1, (a0) /* *a0 = t1 if *a0 hasn't changed; t1=success */
+- beq t1, zero, 1b /* repeat if *a0 did change */
+- nop
++ li $t1, 12345 /* t1 = 12345 */
++ ll $t0, ($a0) /* t0 = *a0 */
++ sc $t1, ($a0) /* *a0 = t1 if *a0 hasn't changed; t1=success */
++ beqz $t1, 1b /* repeat if *a0 did change */
++ nop
+
+- j $31 /* return */
+- or v0, t0, zero /* set return value on way out */
++ jr $ra /* return */
++ move $v0, $t0 /* set return value on way out */
+
+ .set reorder
+ .end tas