Hello Jeremie,
thanks for the time you spent to look into this.
On 06/05/2019 16:34, Jeremie Courreges-Anglas wrote:
[...]
gcc errors out because for ANSI C, C++ comments are an extension
disabled by -std=c89. To enable extensions, one should use -std=gnu89.
This fixes the build with gcc. ok?
Index: Makefile
===================================================================
RCS file: /cvs/ports/cad/netgen/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile 28 Apr 2019 20:51:27 -0000 1.2
+++ Makefile 6 May 2019 14:31:24 -0000
@@ -31,7 +31,7 @@ PATCHORIG = .patch.orig
WRKCONF = ${WRKSRC}/scripts
CONFIGURE_STYLE = gnu
CONFIGURE_ENV = CPPFLAGS="-I${X11BASE}/include" \
- CFLAGS="-std=c89 ${CFLAGS}"
+ CFLAGS="-std=gnu89 ${CFLAGS}"
CONFIGURE_ARGS = --with-tcl=${MODTCL_LIBDIR} \
--with-tk=${MODTK_LIBDIR}
Sure, that looks good to me. Is the REVISION bump needed?
--
Alessandro DE LAURENZIS
[mailto:[email protected]]
Web: http://www.atlantide.t28.net
LinkedIn: https://www.linkedin.com/in/delaurenzis/