Bryan Drewery <bdrew...@freebsd.org> wrote:
> 1: subdir make
>   src.conf: STRIP=
>   rescue/rescue% make all
>   -> make -f OBJDIR/rescue.mk
> 
>  STRIP= is not passed down into rescue.mk, 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
used.

> 
> 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 src.sys.mk is used and /etc/src.conf likely to be read.
_______________________________________________
freebsd-current@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"

Reply via email to