Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Aug 2023 18:56:04 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: 1e99fd383698 - main - x11/wdm: Fix build with llvm16
Message-ID:  <202308051856.375Iu48S075865@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=1e99fd383698437d4ec00ceb1dc76d03d59fa434

commit 1e99fd383698437d4ec00ceb1dc76d03d59fa434
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-05 18:48:51 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-05 18:55:51 +0000

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

diff --git a/x11/wdm/Makefile b/x11/wdm/Makefile
index 01091b42e355..f1a736db4fea 100644
--- a/x11/wdm/Makefile
+++ b/x11/wdm/Makefile
@@ -50,6 +50,12 @@ WDMDIR=		${PREFIX}/lib/X11/wdm
 PAM_CONFIGURE_OFF=	--disable-pam
 PAM_CONFIGURE_ON=	--with-pamdir=${LOCALBASE}/etc/pam.d/
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 post-patch:
 	@${REINPLACE_CMD} -e \
 		's|/usr/X11R6|${PREFIX}|g' ${WRKSRC}/configs/KillConsole



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