On 27 Dec 2017, at 16:39, Julian Elischer <jul...@freebsd.org> wrote:
> 
> On 16/12/17 2:39 am, Konstantin Belousov wrote:
>> Put the following into /etc/src.conf:
> 
> This brings up two questions:
> when to use make.conf and when to use src.conf,

make.conf is for building everything, so ports, or your own programs.

src.conf is for building and installing /usr/src.  WITH_, WITHOUT_ or
MK_ settings go in here.


> and..
> 
>> WITHOUT_PROFILE=yes
>> WITHOUT_DEBUG_FILES=yes
>> WITHOUT_TESTS=yes
> which of the following is correct and why?
> 
> WITH_DEBUG_FILES=no
> WITHOUT_DEBUG_FILES=yes

Since r265399, the WITHOUT_ setting wins.  Note that the value of the
WITH_ or WITHOUT_ setting does not matter, so WITH_DEBUG_FILES=no still
means that DEBUG_FILES is turned on.

If you want less ambiguity, spell your settings in src.conf like:

MK_FOO=yes
MK_BAR=no

-Dimitry

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to