Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 2023 12:27:11 GMT
From:      Muhammad Moinur Rahman <bofh@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 073178561a1e - main - games/oolite: Fix build with llvm16
Message-ID:  <202308071227.377CRBBo026767@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by bofh:

URL: https://cgit.FreeBSD.org/ports/commit/?id=073178561a1e15717e837245448b7fcf362cbc6c

commit 073178561a1e15717e837245448b7fcf362cbc6c
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-07 12:26:31 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-07 12:26:31 +0000

    games/oolite: Fix build with llvm16
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 games/oolite/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/games/oolite/Makefile b/games/oolite/Makefile
index 1e4805cbaa02..13d416bb0cdb 100644
--- a/games/oolite/Makefile
+++ b/games/oolite/Makefile
@@ -58,6 +58,12 @@ BROKEN_armv6=		fails to compile: your compiler does not follow the C++ specifica
 BROKEN_armv7=		fails to compile: your compiler does not follow the C++ specification for temporary object destruction order
 BROKEN_i386=		fails to compile: ../methodjit/MethodJIT.cpp:318:5: error: expected '(' after 'asm'
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+ADDITIONAL_CPPFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-patch: .SILENT
 	${REINPLACE_CMD} -e 's/GNUSTEP_USER_ROOT/GNUSTEP_LOCAL_ROOT/ ; \
 		s/sdl-config/$${SDL_CONFIG}/ ; \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202308071227.377CRBBo026767>