aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/sysofiles.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libthread/sysofiles.sh')
-rw-r--r--src/libthread/sysofiles.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libthread/sysofiles.sh b/src/libthread/sysofiles.sh
index 802faf76..a7af0f5b 100644
--- a/src/libthread/sysofiles.sh
+++ b/src/libthread/sysofiles.sh
@@ -1,6 +1,8 @@
#!/bin/sh
-tag="$OBJTYPE-$SYSNAME-`uname -r`-${CC9:-cc}"
+test -f $PLAN9/config && . $PLAN9/config
+
+tag="$OBJTYPE-$SYSNAME-${SYSVERSION:-`uname -r`}-${CC9:-cc}"
case "$tag" in
*-Linux-2.6.*)
echo pthread.o