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.
This commit is contained in:
Sören Tempel 2021-10-31 06:01:30 +01:00 committed by Dan Cross
parent f7b572818c
commit 521fc08180
3 changed files with 5 additions and 3 deletions

View file

@ -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