diff options
author | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2023-09-06 11:49:12 +0000 |
---|---|---|
committer | Jeremie Courreges-Anglas <jca@cvs.openbsd.org> | 2023-09-06 11:49:12 +0000 |
commit | 7f0699b7fa07ec5982d1d52cde1cb20df34eae9c (patch) | |
tree | 2de9ec157e47bdc37453069ed511f9ac9ae39bfa /gnu/lib | |
parent | 56c82853eef173d11069ef1855d0c4c0a217c2f6 (diff) |
Build with -std=gnu89 to fix the build with clang-16
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.
This fixes the build of libiberty and texinfo with clang-16.
ok robert@
Diffstat (limited to 'gnu/lib')
-rw-r--r-- | gnu/lib/libiberty/Makefile.bsd-wrapper | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gnu/lib/libiberty/Makefile.bsd-wrapper b/gnu/lib/libiberty/Makefile.bsd-wrapper index 3c9eb8c6a31..93399b32781 100644 --- a/gnu/lib/libiberty/Makefile.bsd-wrapper +++ b/gnu/lib/libiberty/Makefile.bsd-wrapper @@ -1,7 +1,8 @@ -# $OpenBSD: Makefile.bsd-wrapper,v 1.19 2018/09/14 13:37:52 naddy Exp $ +# $OpenBSD: Makefile.bsd-wrapper,v 1.20 2023/09/06 11:49:11 jca Exp $ LIB= iberty CPPFLAGS+= -DHAVE_CONFIG_H -I$(.CURDIR)/src -I$(.CURDIR)/include -I$(.OBJDIR) +CFLAGS+= -std=gnu89 XCFLAGS= CC="${CC}" CFLAGS="${CFLAGS} ${COPTS}" LDFLAGS="${LDFLAGS}" HOST_FILES!= cat $(.OBJDIR)/needed-list 2>/dev/null||true |