Fri May 10 19:08:43 2024 UTC (36d)
devel/libgit2: Fix build on NetBSD/aarch64

The package uses alloca(3), which is incompatible with -std=c99. Use -std=gnu99 instead.


(pho)
diff -r1.78 -r1.79 pkgsrc/devel/libgit2/Makefile

cvs diff -r1.78 -r1.79 pkgsrc/devel/libgit2/Makefile (expand / switch to context diff)
--- pkgsrc/devel/libgit2/Makefile 2024/05/06 06:22:09 1.78
+++ pkgsrc/devel/libgit2/Makefile 2024/05/10 19:08:43 1.79
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.78 2024/05/06 06:22:09 wiz Exp $
+# $NetBSD: Makefile,v 1.79 2024/05/10 19:08:43 pho Exp $
 
 DISTNAME=	libgit2-1.8.0
 CATEGORIES=	devel
@@ -14,7 +14,7 @@
 USE_TOOLS+=	pkg-config
 
 USE_CC_FEATURES+=	c99
-FORCE_C_STD=		c99
+FORCE_C_STD=		gnu99 # src/cli/opt.c uses alloca(3)
 
 CMAKE_ARGS+=	-DREGEX_BACKEND="pcre2"