[Patch] Proposal: USE_GNU89 switch
Ed Schouten
ed at 80386.nl
Sat May 30 14:08:02 UTC 2009
Hi,
I'm proposing the following patch:
--- bsd.port.mk
+++ bsd.port.mk
@@ -2180,6 +2180,10 @@
.endif
.endif
+.if defined(USE_CSTD)
+CFLAGS+= -std=${USE_CSTD}
+.endif
+
# Multiple make jobs support
.if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE)
_MAKE_JOBS= #
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=gnu99 when needed, for example.
Any comments? Anyone who wants to integrate this patch into CVS, or
should I do it?
--
Ed Schouten <ed at 80386.nl>
WWW: http://80386.nl/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20090530/bc22e1ad/attachment.pgp
More information about the freebsd-ports
mailing list