Makefile.inc1.patch
Simon J. Gerraty
sjg at juniper.net
Thu Jan 23 22:26:58 UTC 2014
>> For options.mk I allow MK_* to already be set and WITHOUT_* to take
>> precedence over WITH_*. I also allow makefiles to have their own =
>lists
>> of options - separate the policy from the mechanism.
>
>Would that fix this case though?
I imagine it would make fixing it easier.
>> I guess you could even allow a per-knob setting as to which takes
>> precedence.=20
>
>You mean override the default so WITH_* overrides WITHOUT_*?
Yes - I expect that would be rare, but worth it for completness.
The important thing is a simple precidence rule.
>> By simply allowing WITHOUT_* to overrule WITH_*, the Makefile.inc1 =
>usage
>> would be greatly simplified.
>
>Maybe=85 the -DNO_* logic is a bit messy=85
NO_* always wins, it allows a makefile to say "I don't care what you
want I cannot do that".
Most places you see -DNO_* used could be -DWITHOUT_* if the semantics
were not broken as previously described.
NO_* should be mainly for makefiles to set - like NO_MAN= (i don't got
no man page man)
>Curious to see what you have in mind :)..
Look at contrib/bmake/Makefile
--sjg
More information about the freebsd-testing
mailing list