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 <e...@80386.nl>
 WWW: http://80386.nl/

Attachment: pgpKIP1MUNLcg.pgp
Description: PGP signature

Reply via email to