source $PLAN9/config
diff --git a/bin/9c b/bin/9c
index 6ff417a..fcdae6f 100755
--- a/bin/9c
+++ b/bin/9c
@@ -1,5 +1,6 @@
 #!/bin/sh
 
+test -f $PLAN9/config && . $PLAN9/config
 usegcc()
 {
 	cc=gcc