Bryan Drewery <> wrote:
> 1: subdir make
>   src.conf: STRIP=
>   rescue/rescue% make all
>   -> make -f OBJDIR/
>  STRIP= is not passed down into, resulting in 'strip rescue'.

unless src.conf does .export STRIP, or submake reads src.conf for itself
this isn't surprising.
The result probably depends on whether /usr/share/mk or src/share/mk is

> 2. subdir make STRIP env override
>   rescue/rescue% make all STRIP=

Setting STRIP= (or anything) like that causes vastly different behavior
compared to 

env STRIP= make
or setting STRIP= in a makefile (eg src.conf)

When you do 'make STRIP=' the variable is handled differently,
it is put into a special context CMD which has higest priority
and is explicityl passed on to submakes via MAKEFLAGS.
The goal is to treat the setting as immutable (to the extent possible)
as required by posix.

>  STRIP= is passed down resulting in ' rescue'.
> 3: buildworld
>  STRIP= from src.conf is passed down, resulting in ' rescue'.

buildworld tries to ensure that the tree's share/mk is used
so is used and /etc/src.conf likely to be read.
_______________________________________________ mailing list
To unsubscribe, send any mail to ""

Reply via email to