universal-ctags uses C99 constructs so base-gcc needs to be informed

Fixes build on sparc64

ok?

(cc maintainer)

--Kurt

Index: Makefile
===================================================================
RCS file: /cvs/ports/devel/universal-ctags/Makefile,v
retrieving revision 1.12
diff -u -p -r1.12 Makefile
--- Makefile    11 Dec 2020 15:47:10 -0000      1.12
+++ Makefile    9 Jan 2021 17:26:27 -0000
@@ -68,6 +68,11 @@ WANTLIB+=            aspell
 CONFIGURE_ARGS+=       --disable-aspell
 .endif
 
+.include <bsd.port.arch.mk>
+.if !${PROPERTIES:Mclang}
+CFLAGS +=              -std=gnu99
+.endif
+
 pre-test:
        ln -sf ${LOCALBASE}/bin/gdiff ${WRKDIR}/bin/diff
        ln -sf ${LOCALBASE}/bin/gseq ${WRKDIR}/bin/seq

Reply via email to