From owner-freebsd-ports@FreeBSD.ORG Sat May 30 14:08:02 2009 Return-Path: Delivered-To: ports@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7E7421065674; Sat, 30 May 2009 14:08:02 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:7b8:613:100::211]) by mx1.freebsd.org (Postfix) with ESMTP id 1F0028FC13; Sat, 30 May 2009 14:08:01 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 134891CE50; Sat, 30 May 2009 16:08:01 +0200 (CEST) Date: Sat, 30 May 2009 16:08:00 +0200 From: Ed Schouten To: ports@FreeBSD.org Message-ID: <20090530140800.GR48776@hoeg.nl> References: <20090529123633.GM48776@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+wSiqF7c0ySQ2tNi" Content-Disposition: inline In-Reply-To: <20090529123633.GM48776@hoeg.nl> User-Agent: Mutt/1.5.19 (2009-01-05) Cc: gerald@FreeBSD.org Subject: [Patch] Proposal: USE_GNU89 switch X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2009 14:08:02 -0000 --+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 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--