Commit Diff


commit - 87ccb5f9cfd230cc1be7ba81ba6d2b6ba7dc7254
commit + eea5f6adfed4de2d9ef848b170027fd57206c81c
blob - 6ff417a8fd1af7686fae6d866cc389ff13532e0c
blob + fcdae6fd845b51f1ca2e18e9f41d537abee0306c
--- bin/9c
+++ bin/9c
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+test -f $PLAN9/config && . $PLAN9/config
 usegcc()
 {
 	cc=gcc
blob - cd3d0ac92da53fe62643e2f185c4bf700b46e303
blob + 7ea689d1ed67bcb442f8f3eb8a7048854ffa476a
--- bin/9l
+++ bin/9l
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+test -f $PLAN9/config && . $PLAN9/config
 libsl=""
 
 doautolib=true
@@ -173,7 +174,7 @@ case "$tag" in
 *Linux*)
 	ld=gcc
 	extralibs="$extralibs -lutil"
-	case "`uname -r`" in
+	case "${SYSVERSION:-`uname -r`}" in
 	2.6.*)
 		extralibs="$extralibs -lpthread"
 		;;