summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-26 14:05:37 +0200
committerMuhammad Moinur Rahman <bofh@FreeBSD.org>2023-06-26 14:16:02 +0200
commita0a49d750dd06add5340b27e8df79c3db0580c5d (patch)
treeffcb79771bab4648f4941c2b08b7990124e75f64 /games
parentgraphics/quesoglc: Fix build with llvm16 (diff)
games/libretro-pcsx_rearmed: Fix build with llvm16
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'games')
-rw-r--r--games/libretro-pcsx_rearmed/Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/games/libretro-pcsx_rearmed/Makefile b/games/libretro-pcsx_rearmed/Makefile
index f98af9fe2d9c..519055b853bd 100644
--- a/games/libretro-pcsx_rearmed/Makefile
+++ b/games/libretro-pcsx_rearmed/Makefile
@@ -22,8 +22,14 @@ PLIST_FILES= lib/libretro/pcsx_rearmed_libretro.so
MAKEFILE= Makefile.libretro
+.include <bsd.port.pre.mk>
+
+.if ${COMPILER_TYPE} == clang && ${COMPILER_VERSION} >= 160
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
do-install:
${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro;
${INSTALL_LIB} ${WRKSRC}/pcsx_rearmed_libretro.so ${STAGEDIR}/${PREFIX}/lib/libretro;
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>