Date: Sat, 10 Jan 2004 08:47:16 -0600 (CST) From: David Fleck <david.fleck@mchsi.com> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: appending to CFLAGS Message-ID: <20040110084259.A4634@grond.sourballs.org>
next in thread | raw e-mail | index | archive | help
4.9-RELEASE-p1. I'm trying to debug a kernel module (vpo.ko) that used to work, but now doesn't. As a first step, I'd like to build the module in /usr/src/sys/modules/vpo with VPO_DEBUG set. However, my attempts to add the VPO_DEBUG define to the build fail, because my syntax results in VPO_DEBUG replacing CFLAGS, not appended to it. I'm trying: make "CFLAGS+=VPO_DEBUG" in pretty much every permutation I can think of - quoted, unquoted, whitespace separating tokens, no whitespace. Each time, all the CFLAGS are blown away and replaced by VPO_DEBUG. How do I append a variable to CFLAGS? I'm sure this is something blindingly simple, but I'm not seeing it in the developer's handbook or the make manpages. -- David Fleck david.fleck@mchsi.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040110084259.A4634>