Date: Sat, 18 Dec 2010 22:40:47 +0200 From: Peter Pentchev <roam@ringlet.net> To: Alexander Best <arundel@freebsd.org> Cc: freebsd-hackers@freebsd.org Subject: Re: question about CFLAGS, CXXFLAGS and DEBUG_FLAGS Message-ID: <20101218204047.GA4214@straylight.ringlet.net> In-Reply-To: <20101218200937.GA2932@freebsd.org> References: <20101218200937.GA2932@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
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@space.bg roam@ringlet.net roam@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?
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iQIcBAEBCAAGBQJNDRxJAAoJEGUe77AlJ98TAYoQAIXPMREiogWQiNJ5S56OzfMh
agWlZe4imMPzEiiQliDraSUBo/7T4hKWdsMOuEYwqw4hGcHFp85UaUK6TuTDZjdY
w46AnxmswByJa1FBNJIxmkQJpqdGMn4trwpNcBeXxos362aQ9c99MQn9d8hJbF/f
hgRk3BzptS4cc1eCfcE8PXmUCMqvyqIhtMtxxFCRNIWLZRrG9vRXHPj7guB6pLGU
ZA4apdJtLwBHUObk8tTOXz0sIVhpMZveXJj3lilCSgPwJPekZV0ivoqErXwMiKKN
73mp2gqefnRY8GEb7XO6WrbwjJmLhndlX4NjuhXjYRyR90M0/LwenFJ0t4gEHuSZ
mO+lQk4Dx1Qix3MUtdWFN9VqU4q2vQMiUefWAmB5+poizOp3EsTZTu1cWs7IaIHz
/yX6Tx4goLEvQgeWNDEr6I8yit+uxc5uDWRxcMzyBMgp4986FTsaOiIDACiEd0/A
OM6X9x+z4HkhXo6NebgCniLxj09boMyCYzFY1N/RXFH45HHsx7U/yQBdDah4cXBP
bA4HfOxoDZjbPf/GsdsBw95LtWFhHl7qetOodYAzhcCy0dh6l9AHM+OV4OItcruE
Kztp4LKdMbVJ9QFvetR6PUVXdH7CoOc0U9PuXS+H4qtqgv71f08ZHj5z1+tIabJ+
tXCDnYiMfGaca1Vl29iz
=mxDc
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101218204047.GA4214>
