aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-03-28 15:58:14 +0000
committerrsc <devnull@localhost>2005-03-28 15:58:14 +0000
commit5ba33c04daeca7f84d0d0148725e593a0c672343 (patch)
tree74897b34527eaa3d3ea8ddb93973c133222a705b /src
parentbe9e0e98579e6dec33814f1074d22943eb87ef2b (diff)
downloadplan9port-5ba33c04daeca7f84d0d0148725e593a0c672343.tar.gz
plan9port-5ba33c04daeca7f84d0d0148725e593a0c672343.tar.bz2
plan9port-5ba33c04daeca7f84d0d0148725e593a0c672343.zip
NetBSD support. Thanks to Christoph Lohmann.
Diffstat (limited to 'src')
-rw-r--r--src/libthread/mkfile4
-rw-r--r--src/libthread/sysofiles.sh3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/libthread/mkfile b/src/libthread/mkfile
index e77517a8..b1bf3ccf 100644
--- a/src/libthread/mkfile
+++ b/src/libthread/mkfile
@@ -24,7 +24,9 @@ tspawnloop: tspawnloop.$O
9l -o $target $target.$O $PLAN9/lib/$LIB -l9 -lpthread
%.$O: %.c
- 9c -I. $stem.c
+ $CC -I. $stem.c
+
+NetBSD.$O: Linux.c
test:V: tprimes tspawn
primes 1 10007 >p1.txt
diff --git a/src/libthread/sysofiles.sh b/src/libthread/sysofiles.sh
index a7af0f5b..37ab6eb5 100644
--- a/src/libthread/sysofiles.sh
+++ b/src/libthread/sysofiles.sh
@@ -17,6 +17,9 @@ case "$tag" in
*-FreeBSD-*)
echo $SYSNAME.o ${SYSNAME}asm.o
;;
+*-NetBSD-*)
+ echo $SYSNAME.o ${SYSNAME}asm.o
+ ;;
*-Darwin-*)
echo ${SYSNAME}-${OBJTYPE}-asm.o ${SYSNAME}-${OBJTYPE}.o pthread.o
;;