shithub: drawterm-fdroid

Download patch

ref: 278bcb7edd5958d3bb83c0b13f0250446b7ed597
parent: aa7b1a1a3bf4790a6a77d2fef06913da25cac597
author: sl <devnull@localhost>
date: Tue Nov 1 15:37:32 EDT 2016

posix-mips: fix build (from OpenBSD port)

--- a/posix-mips/Makefile
+++ b/posix-mips/Makefile
@@ -13,13 +13,6 @@
 	$(AR) r $(LIB) $(OFILES)
 	$(RANLIB) $(LIB)
 
-%.$O: %.c
-	$(CC) $(CFLAGS) $*.c
-
-%.$O: %.s
-	$(AS) $(ASFLAGS) -o $*.$O $*.s
-
-%.s: %.spp
-	cpp $*.spp >$*.s
-
-
+tas.$O: tas.s
+	ln -sf tas.s tas.S
+	$(CC) -c -o tas.$O -mips3 tas.S
--- a/posix-mips/tas.s
+++ b/posix-mips/tas.s
@@ -1,5 +1,4 @@
-#include <sys/regdef.h>
-#include <sys/asm.h>
+#include <machine/regdef.h>
 
 .globl tas
 .ent tas 2