git: 79cb9f7b2d24 - main - games/avp: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 05 Aug 2023 18:01:30 UTC
The branch main has been updated by bofh: URL: https://cgit.FreeBSD.org/ports/commit/?id=79cb9f7b2d242a72d7fefd09e68bf0f92d6f97e8 commit 79cb9f7b2d242a72d7fefd09e68bf0f92d6f97e8 Author: Muhammad Moinur Rahman <bofh@FreeBSD.org> AuthorDate: 2023-08-05 15:00:25 +0000 Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org> CommitDate: 2023-08-05 18:01:10 +0000 games/avp: Fix build with llvm16 Approved by: portmgr (blanket) Sponsored by: The FreeBSD Foundation --- games/avp/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/games/avp/Makefile b/games/avp/Makefile index dfd871f34e56..f4b74cceb1c5 100644 --- a/games/avp/Makefile +++ b/games/avp/Makefile @@ -20,6 +20,12 @@ LDFLAGS_i386= -Wl,-znotext PLIST_FILES= bin/${PORTNAME} +.include <bsd.port.options.mk> + +.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 )) +CFLAGS+= -Wno-error=incompatible-function-pointer-types +.endif + do-install: ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} \ ${STAGEDIR}${PREFIX}/bin/