[Patch] Proposal: USE_GNU89 switch
Ed Schouten
ed at 80386.nl
Sat May 30 16:18:17 UTC 2009
* Mel Flynn <mel.flynn+fbsd.ports at mailing.thruhere.net> wrote:
> Are there any edge cases of (antiquated) ports that (indirectly) use
> bsd.sys.mk and as such get hit by:
> 11 # the default is gnu99 for now
> 12 CSTD ?= gnu99
>
> 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
+.if defined(USE_CSTD)
+CFLAGS:= ${CFLAGS:N-std=*} -std=${USE_CSTD}
+.endif
+
# Multiple make jobs support
.if defined(DISABLE_MAKE_JOBS) || defined(MAKE_JOBS_UNSAFE)
_MAKE_JOBS= #
--
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/dfd61cb2/attachment.pgp
More information about the freebsd-ports
mailing list