ref: 4b6506cb576afcf6e67adb63cbdc2843ab11a2ef
parent: ebe88f34cb1823dd2d8f0f7428ce69c7a983397a
author: cinap_lenrek <[email protected]>
date: Sat Aug 8 04:17:54 EDT 2015
ape: fix build for objtype=spim
--- a/sys/src/ape/lib/9/mkfile
+++ b/sys/src/ape/lib/9/mkfile
@@ -20,6 +20,9 @@
CFLAGS=-c $CFLAGS -D_POSIX_SOURCE -D_PLAN9_SOURCE
+%.0: mips/%.s
+ $AS $prereq
+
%.$O: $objtype/%.s
$AS $prereq
--- /dev/null
+++ b/sys/src/ape/lib/ap/spim/mkfile
@@ -1,0 +1,32 @@
+APE=/sys/src/ape
+<$APE/config
+LIB=/$objtype/lib/ape/libap.a
+OFILES=\
+ cycles.$O\
+ getfcr.$O\
+ lock.$O\
+ main9.$O\
+ main9p.$O\
+ memchr.$O\
+ memcmp.$O\
+ memmove.$O\
+ memset.$O\
+ notetramp.$O\
+ setjmp.$O\
+ strchr.$O\
+ strcmp.$O\
+ strcpy.$O\
+ tas.$O\
+ vlop.$O\
+ vlrt.$O\
+
+%.$O: ../mips/%.c
+ $CC -I../mips $CFLAGS ../mips/$stem.c
+
+%.$O: ../mips/%.s
+ $AS -I../mips $AFLAGS ../mips/$stem.s
+
+</sys/src/cmd/mksyslib
+
+CFLAGS=-c -D_POSIX_SOURCE -D_PLAN9_SOURCE
+
--- a/sys/src/ape/lib/openssl/include/e_os.h
+++ b/sys/src/ape/lib/openssl/include/e_os.h
@@ -71,7 +71,7 @@
#endif
#ifdef PLAN9
-#if defined(T386) || defined(Tamd64) || defined(Talpha) || defined(Tarm)
+#if defined(T386) || defined(Tamd64) || defined(Talpha) || defined(Tarm) || defined(Tspim)
#define L_ENDIAN
#elif defined(Tmips) || defined(Tsparc) || defined(Tpower)
#define B_ENDIAN