From owner-freebsd-current Mon Jan 10 8:19:49 2000 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id E4DDD15133 for ; Mon, 10 Jan 2000 08:19:41 -0800 (PST) (envelope-from bde@zeta.org.au) Received: from bde.zeta.org.au (beefcake.zeta.org.au [203.26.10.12]) by mailman.zeta.org.au (8.8.7/8.8.7) with ESMTP id DAA25162; Tue, 11 Jan 2000 03:19:00 +1100 Date: Tue, 11 Jan 2000 03:18:57 +1100 (EST) From: Bruce Evans X-Sender: bde@alphplex.bde.org To: Alexander Leidinger Cc: John Polstra , current@FreeBSD.ORG Subject: Re: __sigisempty() undefined if "cc -g" used. In-Reply-To: <200001101305.OAA02110@Magelan.Leidinger.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=X-UNKNOWN Content-Transfer-Encoding: QUOTED-PRINTABLE Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Mon, 10 Jan 2000, Alexander Leidinger wrote: > On 10 Jan, Bruce Evans wrote: >=20 > >> Better yet: DEBUG_FLAGS=3D-g > >=20 > > Except it only supported in bsd.prog.mk and bsd.lib.mk, but not in > > bsd.kmod.mk, kernel Makefiles, or if no bsd .mk files are included > > A few verbose module makefiles add it explicitly. You can also use > > COPTS, but it is only supported in bsd.prog.mk, bsd.kmod.mk and kernel > > Makefiles. >=20 > Didn=B4t we have "makeoptions DEBUG=3D-g" as a kernel option to compile t= he > kernel with debug information? What about "config -g MYKERNEL"? DEBUG is a private variable in kernel Makefiles. "config -g MYKERNEL" is the only correct way to set it. "makeoptions DEBUG=3D-g" is a hackish way to set it. It depends on knowing the the Makefiles' internals. > Do we really need a global debug option which covers everything? It's simpler to have the same global debug option for everything. > If I read it correcly we have DEBUG_FLAGS for the userland (if it uses a > bsd.{prog,lib}.mk) and DEBUG for the kernel (and COPTS for KLD's), > right? No. DEBUG is quite different. > So we only have to make the KLD's consistent to the kernel (or am > I missing something): > > bsd.kmod.mk: > ---snip--- > 92c92 > < CFLAGS+=3D ${COPTS} -D_KERNEL ${CWARNFLAGS} > --- > > CFLAGS+=3D ${DEBUG} -D_KERNEL ${CWARNFLAGS} > ---snip--- This would break COPTS :-). All places should use something more like: CFLAGS+=3D=09[-D_KERNEL] ${CWARNFLAGS} ${COPTS} ${DEBUG_FLAGS} Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message