Date: Sat, 30 May 2009 16:08:00 +0200 From: Ed Schouten <ed@80386.nl> To: ports@FreeBSD.org Cc: gerald@FreeBSD.org Subject: [Patch] Proposal: USE_GNU89 switch Message-ID: <20090530140800.GR48776@hoeg.nl> In-Reply-To: <20090529123633.GM48776@hoeg.nl> References: <20090529123633.GM48776@hoeg.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
--+wSiqF7c0ySQ2tNi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, I'm proposing the following patch: --- bsd.port.mk +++ bsd.port.mk @@ -2180,6 +2180,10 @@ .endif .endif =20 +.if defined(USE_CSTD) +CFLAGS+=3D -std=3D${USE_CSTD} +.endif + # Multiple make jobs support .if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE) _MAKE_JOBS=3D # I thought it would be better to add USE_CSTD, instead of USE_GNU89, where the port itself can specify which C standard to use. This will also allow us to force builds with -std=3Dgnu99 when needed, for example. Any comments? Anyone who wants to integrate this patch into CVS, or should I do it? --=20 Ed Schouten <ed@80386.nl> WWW: http://80386.nl/ --+wSiqF7c0ySQ2tNi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkohPcAACgkQ52SDGA2eCwWHUACfQAZj/PRL/9MPkW8GnxrhNABU uk4An0moNUKhCNETFg27ILipOr+8A1qL =jhY1 -----END PGP SIGNATURE----- --+wSiqF7c0ySQ2tNi--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090530140800.GR48776>