summaryrefslogtreecommitdiffstats
path: root/src/lib9/mkfile
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2021-10-31 06:01:30 +0100
committerDan Cross <crossd@gmail.com>2022-07-27 10:15:51 -0400
commit521fc081802282bac261c3639e9c77fe131f1d42 (patch)
tree1fe94354eca825a39ffaa8fab75d5cfa1c09993c /src/lib9/mkfile
parentf7b572818c7617065ef0877870caee060db90a30 (diff)
downloadplan9port-521fc081802282bac261c3639e9c77fe131f1d42.tar.gz
plan9port-521fc081802282bac261c3639e9c77fe131f1d42.zip
lib9: pass $PLAN9_TARGET via CPP for get9root fallback value
Allows this function to always return the proper path in situations where the $PLAN9 environment variable is not set, i.e. a rc login shell.
Diffstat (limited to 'src/lib9/mkfile')
-rw-r--r--src/lib9/mkfile3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib9/mkfile b/src/lib9/mkfile
index db267dfe..ed4315ff 100644
--- a/src/lib9/mkfile
+++ b/src/lib9/mkfile
@@ -175,6 +175,9 @@ HFILES=\
%.$O: utf/%.c
$CC $CFLAGS utf/$stem.c
+get9root.$O: get9root.c
+ $CC $CFLAGS -DPLAN9_TARGET=\"$PLAN9_TARGET\" get9root.c
+
XLIB=$PLAN9/lib/$LIB
testfmt: testfmt.$O $XLIB