Hi ports --
gcc-4.2.1 doesn't understand the -Wvla flag. As a result, the
sysutils/xxhash build fails.
Remove the flag, it builds.
Noticed in the latest powerpc build logs. Tested on amd64 and macppc,
fine on both.
Alternative, we could set
COMPILER = base-clang ports-gcc
COMPILER_LANGS = c
in the port Makefile.
OK for either approach?
~Brian
Index: patches/patch-Makefile
===================================================================
RCS file: /cvs/ports/sysutils/xxhash/patches/patch-Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-Makefile
--- patches/patch-Makefile 11 Jul 2019 16:28:13 -0000 1.1.1.1
+++ patches/patch-Makefile 25 Jul 2019 23:30:05 -0000
@@ -5,6 +5,15 @@ Don't create symbolic links pointing to
Index: Makefile
--- Makefile.orig
+++ Makefile
+@@ -37,7 +37,7 @@ CFLAGS ?= -O3
+ DEBUGFLAGS+=-Wall -Wextra -Wconversion -Wcast-qual -Wcast-align -Wshadow \
+ -Wstrict-aliasing=1 -Wswitch-enum -Wdeclaration-after-statement \
+ -Wstrict-prototypes -Wundef -Wpointer-arith -Wformat-security \
+- -Wvla -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \
++ -Wformat=2 -Winit-self -Wfloat-equal -Wwrite-strings \
+ -Wredundant-decls -Wstrict-overflow=5
+ CFLAGS += $(DEBUGFLAGS)
+ FLAGS = $(CFLAGS) $(CPPFLAGS) $(MOREFLAGS)
@@ -293,8 +293,6 @@ install: lib xxhsum
@$(INSTALL) -d -m 755 $(DESTDIR)$(LIBDIR)
@$(INSTALL_DATA) libxxhash.a $(DESTDIR)$(LIBDIR)