Tuesday, September 08, 2020

[sparc64/base-gcc] Fix www/kore build

The build of www/kore dies on sparc64 because of -Werror.

Modifying the patch for Makefile removes that and fixes the build.

ok?

(cc maintainer)

--Kurt

Index: patches/patch-Makefile
===================================================================
RCS file: /cvs/ports/www/kore/patches/patch-Makefile,v
retrieving revision 1.6
diff -u -p -r1.6 patch-Makefile
--- patches/patch-Makefile 1 Sep 2020 16:50:50 -0000 1.6
+++ patches/patch-Makefile 7 Sep 2020 20:52:55 -0000
@@ -12,6 +12,15 @@ Index: Makefile
SHARE_DIR=$(PREFIX)/share/kore
INCLUDE_DIR=$(PREFIX)/include/kore

+@@ -24,7 +24,7 @@ S_SRC= src/kore.c src/buf.c src/config.c src/connectio
+ FEATURES=
+ FEATURES_INC=
+
+-CFLAGS+=-Wall -Werror -Wstrict-prototypes -Wmissing-prototypes
++CFLAGS+=-Wall -Wstrict-prototypes -Wmissing-prototypes
+ CFLAGS+=-Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual
+ CFLAGS+=-Wsign-compare -Iinclude/kore -I$(OBJDIR) -std=c99 -pedantic
+ CFLAGS+=-DPREFIX='"$(PREFIX)"' -fstack-protector-all
@@ -44,12 +44,6 @@ endif
ifneq ("$(DEBUG)", "")
CFLAGS+=-DKORE_DEBUG -g

No comments:

Post a Comment