question about CFLAGS, CXXFLAGS and DEBUG_FLAGS

Peter Pentchev roam at ringlet.net
Sat Dec 18 20:40:58 UTC 2010


On Sat, Dec 18, 2010 at 08:09:37PM +0000, Alexander Best wrote:
> hi there,
> 
> i just stumbled over these lines:
> 
> otaku% grep -n \${DEBUG_FLAGS} /usr/share/mk/bsd.prog.mk
> 24:CFLAGS+=${DEBUG_FLAGS}
> 25:CXXFLAGS+=${DEBUG_FLAGS}
> 
> is it really necessary to assign the debug flags to both CFLAGS *and* CXXFLAGS?

Uhm... yes, so they can be used in both C and C++ programs :)
...or are you making the mistake I've made too many times (and still
make sometimes) of confusing CXXFLAGS with CPPFLAGS? :)

G'luck,
Peter

-- 
Peter Pentchev	roam at space.bg    roam at ringlet.net    roam at FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
Hey, out there - is it *you* reading me, or is it someone else?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20101218/d420207f/attachment.pgp


More information about the freebsd-hackers mailing list