Skip to content

Commit d685d3e

Browse files
jperkinalarixnia
authored andcommitted
gtk: Add -Wno-error workarounds.
Software released 24 years ago isn't getting fixed any time soon.
1 parent 3c245c6 commit d685d3e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

x11/gtk/Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# $NetBSD: Makefile,v 1.144 2022/06/28 11:37:53 wiz Exp $
1+
# $NetBSD: Makefile,v 1.145 2025/07/16 09:32:49 jperkin Exp $
22

33
DISTNAME= gtk+-1.2.10
44
PKGREVISION= 21
@@ -26,6 +26,13 @@ CONFIGURE_ARGS+= --with-xinput=xfree \
2626
--sysconfdir=${PREFIX}/share
2727
CONFIGURE_ENV+= X_LDFLAGS=${X_LDFLAGS:Q}
2828

29+
# Way too many hardcoded issues to patch
30+
.if ${PKGSRC_COMPILER:Mgcc}
31+
CFLAGS+= -Wno-error=implicit-function-declaration
32+
CFLAGS+= -Wno-error=implicit-int
33+
CFLAGS+= -Wno-error=incompatible-pointer-types
34+
.endif
35+
2936
MAKE_ENV+= PKGLOCALEDIR=${PKGLOCALEDIR:Q}
3037
PLIST_SUBST+= LOCALBASE=${LOCALBASE:Q}
3138

0 commit comments

Comments
 (0)