tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Fixing configure failures from newer gcc
Hey folks,
I had to add the following hack to x11/rxvt/Makefile to get it to build
on newer NetBSD current.
This obviously is wrong, but what is the proper idiom for fixing fallout
like this? Not making it depend on NetBSD and at least checking for
CC_VERSION:Mgcc-14.* sounds still awkward to me.
Without this -Wno- additions gcc 14 fails a lot of (broken) configure tests
and we end up with a non-buildable configuration.
Martin
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/x11/rxvt/Makefile,v
retrieving revision 1.66
diff -u -r1.66 Makefile
--- Makefile 24 Nov 2021 06:55:41 -0000 1.66
+++ Makefile 11 Oct 2025 07:31:03 -0000
@@ -50,6 +50,7 @@
# Make sure _NETBSD_SOURCE is defined for updlastlogx
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
+CFLAGS.NetBSD+= -Wno-implicit-function-declaration -Wno-implicit-int
post-patch:
${MV} ${WRKSRC}/src/feature.h ${WRKSRC}/src/feature.h.orig
Home |
Main Index |
Thread Index |
Old Index