shithub: drawterm

Download patch

ref: 8fab9847269b8f7930642b0ef42bce24a2eabbe9
parent: ee4b58548e0df76a402c09ffcf0964d0e6cddbfa
author: 23hiro <[email protected]>
date: Sat Feb 20 15:40:55 EST 2016

linux: for systems with 64 bit kernel but 32 bit userland provide a conf=linux386 to force 386 build

--- /dev/null
+++ b/Make.linux386
@@ -1,0 +1,22 @@
+# Unix
+PTHREAD=-pthread
+AR=ar
+AS=as
+RANLIB=ranlib
+X11=/usr/X11R6
+CC=gcc
+CFLAGS=-Wall -Wno-missing-braces -ggdb -I$(ROOT) -I$(ROOT)/include -I$(ROOT)/kern -c -I$(X11)/include -D_THREAD_SAFE $(PTHREAD) -O2
+O=o
+OS=posix
+GUI=x11
+LDADD=-L$(X11)/lib64 -L$(X11)/lib -lX11 -ggdb
+LDFLAGS=$(PTHREAD) -static
+TARG=drawterm
+# AUDIO=none
+AUDIO=unix
+
+all: default
+
+libmachdep.a:
+	arch=386; \
+	(cd posix-$$arch &&  make)