git: 14b946dd9b9e - main - editors/led: Fix build with llvm16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 19 Jul 2023 19:27:28 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=14b946dd9b9ef9b2a1b6b19f702532fc067fc5ff
commit 14b946dd9b9ef9b2a1b6b19f702532fc067fc5ff
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-07-19 18:52:29 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-07-19 19:27:15 +0000
editors/led: Fix build with llvm16
Approved by: portmgr (blanket)
Sponsored by: The FreeBSD Foundation
---
editors/led/Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/editors/led/Makefile b/editors/led/Makefile
index f7175e4e5516..d869259dcea6 100644
--- a/editors/led/Makefile
+++ b/editors/led/Makefile
@@ -17,6 +17,12 @@ MAKE_JOBS_UNSAFE= yes
SUB_FILES= pkg-message
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+CFLAGS+= -Wno-error=incompatible-function-pointer-types
+.endif
+
post-patch:
@${REINPLACE_CMD} -E 's,(bin|lib|data)dir),DESTDIR)$$(&,' \
${WRKSRC}/Makefile.in