git: d575f386ddb3 - main - devel/libx86: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 23 Jul 2023 16:51:06 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=d575f386ddb378180ee682857ca71ac91f189043
commit d575f386ddb378180ee682857ca71ac91f189043
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-23 16:30:12 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-23 16:30:12 +0000
devel/libx86: Fix build with llvm16
- Pet portclippy
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
devel/libx86/Makefile | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/devel/libx86/Makefile b/devel/libx86/Makefile
index e52e749f7af3..afcf96d05e8e 100644
--- a/devel/libx86/Makefile
+++ b/devel/libx86/Makefile
@@ -12,12 +12,21 @@ WWW= http://www.codon.org.uk/~mjg59/libx86/
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
-ALL_TARGET= default
-MAKE_ARGS= BACKEND=x86emu
ONLY_FOR_ARCHS= amd64 i386
-PLIST_FILES= include/libx86.h lib/libx86.a lib/libx86.so lib/libx86.so.1
-USE_LDCONFIG= yes
+
USES= gmake
+USE_LDCONFIG= yes
+
+MAKE_ARGS= BACKEND=x86emu
+ALL_TARGET= default
+
+PLIST_FILES= include/libx86.h lib/libx86.a lib/libx86.so lib/libx86.so.1
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
do-install:
${INSTALL_DATA} ${WRKSRC}/lrmi.h ${STAGEDIR}${PREFIX}/include/libx86.h