Date: Sat, 02 Nov 2002 00:39:20 -0600 (CST) From: Conrad Sabatier <conrads@cox.net> To: Giorgos Keramidas <keramida@ceid.upatras.gr> Cc: current@FreeBSD.ORG Subject: Re: A few questions Message-ID: <XFMail.20021102003920.conrads@cox.net> In-Reply-To: <20021101120227.GB1778@gray.sea.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
On 01-Nov-2002 Giorgos Keramidas wrote:
> On 2002-10-31 18:39, Conrad Sabatier <conrads@cox.net> wrote:
>> [...]
>> And finally, is there a simple way to ensure that none of the debugging
>> code (including INVARIANTS stuff) is included during a buildworld?
>
> INVARIANTS and WITNESS are kernel-only stuff. They shouldn't affect
> your userland programs. If they do, it's probably a bug.
I just happened to notice this:
$ grep -r 'CFLAGS.*INVARIANTS' /usr/src
/usr/src/gnu/usr.bin/cc/Makefile.inc:#CFLAGS+= -DWANT_COMPILER_INVARIANTS
/usr/src/lib/libc_r/Makefile:CFLAGS+=-D_PTHREADS_INVARIANTS
/usr/src/lib/libpthread/Makefile:CFLAGS+=-D_PTHREADS_INVARIANTS
Granted, the first one is commented out (and I've already built world after
commenting the other two with no ill effects).
--
Conrad Sabatier <conrads@cox.net>
He played the king as if afraid someone else would play the ace.
-- John Mason Brown, drama critic
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20021102003920.conrads>
