Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Aug 2023 11:53:35 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: a556d7b3f35a - main - databases/mdcached: Fix build with llvm16
Message-ID:  <202308051153.375BrZMA075160@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=a556d7b3f35a75bd4897444c8e4a09831d4c1319

commit a556d7b3f35a75bd4897444c8e4a09831d4c1319
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-05 11:27:43 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-05 11:53:19 +0000

    databases/mdcached: Fix build with llvm16
    
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 databases/mdcached/Makefile | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/databases/mdcached/Makefile b/databases/mdcached/Makefile
index 2c31c9e0d144..7d849de30e72 100644
--- a/databases/mdcached/Makefile
+++ b/databases/mdcached/Makefile
@@ -11,15 +11,22 @@ WWW=		http://mdcached.sourceforge.net/
 LICENSE=	BSD2CLAUSE
 
 USES=		tar:tgz
-WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/${PORTNAME}
 USE_LDCONFIG=	yes
 
+WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/${PORTNAME}
+
 PORTDOCS=	UserGuide.txt mdcached.txt
 
 OPTIONS_DEFINE=	DOCS
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=dynamic-exception-spec
+.endif
+
 post-patch:
-	@${REINPLACE_CMD} 's|ADDCFLAGS = -Wall -g -O3 -march=native|ADDCFLAGS = ${CFLAGS}|' \
+	@${REINPLACE_CMD} 's|ADDCFLAGS = -Wall -g -O3|ADDCFLAGS = ${CFLAGS}|' \
 		${WRKSRC}/Makefile
 	@${REINPLACE_CMD} 's|/usr/local|${PREFIX}|' \
 		${WRKSRC}/FreeBSD/${PORTNAME}



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