git: 6cafaa52b4d3 - main - misc/bb: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 26 Jul 2023 09:40:30 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=6cafaa52b4d335f4d7f22fb4cf594575a73c0f72 commit 6cafaa52b4d335f4d7f22fb4cf594575a73c0f72 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-07-26 09:39:44 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-07-26 09:40:13 +0000 misc/bb: Fix build with llvm16 Sponsored by: The FreeBSD Foundation --- misc/bb/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/bb/Makefile b/misc/bb/Makefile index 07ce9e14b555..834adea34e96 100644 --- a/misc/bb/Makefile +++ b/misc/bb/Makefile @@ -27,6 +27,10 @@ OPTIONS_DEFINE= DOCS USES+= compiler:gcc-c++11-lib .endif +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + pre-patch: @${FIND} ${WRKSRC} -type f | ${XARGS} ${REINPLACE_CMD} -E -e "s@#include +<malloc.h>@#include <stdlib.h>@g" \ -e 's, REGISTERS \(3\),,g'