This is ancient GNU software that tends to break whenever clang adds
more warnings about deprecated features in new languages versions or
turns them into errors. Using -std=gnu89 (the defaults for base-gcc)
for those packages means we'll probably avoid most new warnings, errors,
and possible miscompilations when updating clang.
ok robert@
-# $OpenBSD: Makefile.bsd-wrapper,v 1.31 2023/01/27 22:01:02 kettenis Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.32 2023/09/06 12:15:30 jca Exp $
.include <bsd.own.mk>
SUBDIRS= opcodes bfd
CONF_SUBDIRS= opcodes bfd
+CFLAGS+= -std=gnu89
CFLAGS+= ${PIE_DEFAULT}
XCFLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" LDFLAGS="${LDSTATIC}"
# This allows moving the whole binutils installation around for
-# $OpenBSD: Makefile.bsd-wrapper,v 1.89 2019/12/21 21:40:00 espie Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.90 2023/09/06 12:15:30 jca Exp $
.include <bsd.own.mk>
+CFLAGS+= -std=gnu89
CFLAGS+= ${PIE_DEFAULT}
XCFLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" LDFLAGS="${LDSTATIC}"
# This allows moving the whole binutils installation around for
-# $OpenBSD: Makefile.bsd-wrapper,v 1.59 2019/12/21 21:40:00 espie Exp $
+# $OpenBSD: Makefile.bsd-wrapper,v 1.60 2023/09/06 12:15:30 jca Exp $
.include <bsd.own.mk>
MAN= man/cvs.1 man/cvs.5 man/cvsbug.8 man/rcs2log.1
+CFLAGS+= -std=gnu89
XCFLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" CPP="${CPP}"
CLEANFILES= src/version.c lib/getdate.c lib/getdate.h macintosh/Makefile \
os2/Makefile zlib/Makefile \