[Patch] Proposal: USE_GNU89 switch
Gabor Kovesdan
gabor at FreeBSD.org
Sat May 30 14:32:01 UTC 2009
Ed Schouten escribió:
> 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?
>
I don't think it's a good idea. This knob is completely superfluous and
thus should be avoided. One can just add -std to CFLAGS from a port
Makefile. Forced build are also possible without this stuff, you can set
this in /etc/make.conf.
Cheers,
--
Gabor Kovesdan
FreeBSD Volunteer
EMAIL: gabor at FreeBSD.org .:|:. gabor at kovesdan.org
WEB: http://people.FreeBSD.org/~gabor .:|:. http://kovesdan.org
More information about the freebsd-ports
mailing list