From owner-freebsd-current Mon Jan 10 6: 4: 5 2000 Delivered-To: freebsd-current@freebsd.org Received: from mout0.01019freenet.de (mout0.01019freenet.de [62.104.201.5]) by hub.freebsd.org (Postfix) with ESMTP id A069A14BDA for ; Mon, 10 Jan 2000 06:04:01 -0800 (PST) (envelope-from netchild@leidinger.net) Received: from [62.104.201.2] (helo=mx1.01019freenet.de) by mout0.01019freenet.de with esmtp (Exim 3.12 #2) id 127fQM-0000Mo-00; Mon, 10 Jan 2000 15:03:58 +0100 Received: from [213.6.45.198] (helo=Magelan.Leidinger.net) by mx1.01019freenet.de with esmtp (Exim 3.12 #2) id 127fQM-0000t8-00; Mon, 10 Jan 2000 15:03:58 +0100 Received: from Leidinger.net (netchild@localhost [127.0.0.1]) by Magelan.Leidinger.net (8.9.3/8.9.3) with ESMTP id OAA02110; Mon, 10 Jan 2000 14:05:55 +0100 (CET) (envelope-from netchild@Leidinger.net) Message-Id: <200001101305.OAA02110@Magelan.Leidinger.net> Date: Mon, 10 Jan 2000 14:05:54 +0100 (CET) From: Alexander Leidinger Subject: Re: __sigisempty() undefined if "cc -g" used. To: bde@zeta.org.au Cc: John Polstra , current@FreeBSD.ORG In-Reply-To: MIME-Version: 1.0 Content-Type: TEXT/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by Magelan.Leidinger.net id OAA02110 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 10 Jan, Bruce Evans wrote: >> 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. 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"? Do we really need a global debug option which covers 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? 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--- Bye, Alexander. --=20 Happy new year and no Y2K-crash to everyone. http://www.Leidinger.net Alexander+Home @ Leidinger.net Key fingerprint =3D 7423 F3E6 3A7E B334 A9CC B10A 1F5F 130A A638 6E7E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message