Date: Sat, 30 May 2009 18:18:16 +0200 From: Ed Schouten <ed@80386.nl> To: Mel Flynn <mel.flynn+fbsd.ports@mailing.thruhere.net> Cc: gerald@freebsd.org, Gabor Kovesdan <gabor@freebsd.org>, freebsd-ports@freebsd.org Subject: Re: [Patch] Proposal: USE_GNU89 switch Message-ID: <20090530161816.GU48776@hoeg.nl> In-Reply-To: <200905301805.15180.mel.flynn%2Bfbsd.ports@mailing.thruhere.net> References: <20090529123633.GM48776@hoeg.nl> <4A213F84.1000704@FreeBSD.org> <20090530142152.GS48776@hoeg.nl> <200905301805.15180.mel.flynn%2Bfbsd.ports@mailing.thruhere.net>
next in thread | previous in thread | raw e-mail | index | archive | help
--2z7AKWNQ4hR/M4ga Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Mel Flynn <mel.flynn+fbsd.ports@mailing.thruhere.net> wrote: > Are there any edge cases of (antiquated) ports that (indirectly) use=20 > bsd.sys.mk and as such get hit by: > 11 # the default is gnu99 for now > 12 CSTD ?=3D gnu99 >=20 > In other words should one clean CFLAGS of -std before applying the > forced one, similar as to what WITH_DEBUG in ports does for -O*. Yes. This should fix it: --- bsd.port.mk +++ bsd.port.mk @@ -2180,6 +2180,10 @@ .endif .endif =20 +.if defined(USE_CSTD) +CFLAGS:=3D ${CFLAGS:N-std=3D*} -std=3D${USE_CSTD} +.endif + # Multiple make jobs support .if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE) _MAKE_JOBS=3D # --=20 Ed Schouten <ed@80386.nl> WWW: http://80386.nl/ --2z7AKWNQ4hR/M4ga Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkohXEgACgkQ52SDGA2eCwWoIQCeO+2iYqlftQRjVNKadFm2o8Vb JKEAnizh6nUO8CaSL91mdUB7mMjleV/f =RIXW -----END PGP SIGNATURE----- --2z7AKWNQ4hR/M4ga--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090530161816.GU48776>