From owner-freebsd-hackers@FreeBSD.ORG Sat Dec 18 20:40:57 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F31BF106564A for ; Sat, 18 Dec 2010 20:40:57 +0000 (UTC) (envelope-from roam@ringlet.net) Received: from erengrad.hoster.bg (erengrad.hoster.bg [77.77.142.9]) by mx1.freebsd.org (Postfix) with ESMTP id 6FB448FC17 for ; Sat, 18 Dec 2010 20:40:57 +0000 (UTC) Received: from middenheim.hoster.bg (middenheim.hoster.bg [77.77.142.11]) by erengrad.hoster.bg (Postfix) with ESMTP id 0E8B2DCCDD for ; Sat, 18 Dec 2010 22:40:55 +0200 (EET) Received: from straylight.ringlet.net (93-152-170-58.ddns.onlinedirect.bg [93.152.170.58]) (Authenticated sender: roam@hoster.bg) by mail.hoster.bg (Postfix) with ESMTP id A521C5C089 for ; Sat, 18 Dec 2010 22:40:48 +0200 (EET) Received: from roam (uid 1000) (envelope-from roam@ringlet.net) id 50631d by straylight.ringlet.net (DragonFly Mail Agent) Sat, 18 Dec 2010 22:40:47 +0200 Date: Sat, 18 Dec 2010 22:40:47 +0200 From: Peter Pentchev To: Alexander Best Message-ID: <20101218204047.GA4214@straylight.ringlet.net> Mail-Followup-To: Alexander Best , freebsd-hackers@freebsd.org References: <20101218200937.GA2932@freebsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="u3/rZRmxL6MmkK24" Content-Disposition: inline In-Reply-To: <20101218200937.GA2932@freebsd.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-MailScanner-ID: A521C5C089.2ED7D X-hoster-MailScanner: Found to be clean X-hoster-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.001, required 10, autolearn=disabled, UNPARSEABLE_RELAY 0.00) X-hoster-MailScanner-From: roam@ringlet.net X-hoster-MailScanner-To: freebsd-hackers@freebsd.org X-Spam-Status: No Cc: freebsd-hackers@freebsd.org Subject: Re: question about CFLAGS, CXXFLAGS and DEBUG_FLAGS X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Dec 2010 20:40:58 -0000 --u3/rZRmxL6MmkK24 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 18, 2010 at 08:09:37PM +0000, Alexander Best wrote: > hi there, >=20 > i just stumbled over these lines: >=20 > otaku% grep -n \${DEBUG_FLAGS} /usr/share/mk/bsd.prog.mk > 24:CFLAGS+=3D${DEBUG_FLAGS} > 25:CXXFLAGS+=3D${DEBUG_FLAGS} >=20 > is it really necessary to assign the debug flags to both CFLAGS *and* CXX= FLAGS? Uhm... yes, so they can be used in both C and C++ programs :) =2E..or are you making the mistake I've made too many times (and still make sometimes) of confusing CXXFLAGS with CPPFLAGS? :) G'luck, Peter --=20 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? --u3/rZRmxL6MmkK24 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----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----- --u3/rZRmxL6MmkK24--