Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 5 Aug 2023 11:53:30 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: 02c61dffcbac - main - security/pecl-crypto: Fix build with llvm16
Message-ID:  <202308051153.375BrU1t075062@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=02c61dffcbacd639cec46b55501f7c10ecedc1ec

commit 02c61dffcbacd639cec46b55501f7c10ecedc1ec
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-08-05 10:08:12 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-08-05 11:53:18 +0000

    security/pecl-crypto: Fix build with llvm16
    
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
    Sponsored by:   The FreeBSD Foundation
---
 security/pecl-crypto/Makefile | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/security/pecl-crypto/Makefile b/security/pecl-crypto/Makefile
index 48ef0cb0a3c7..b19667bc3d00 100644
--- a/security/pecl-crypto/Makefile
+++ b/security/pecl-crypto/Makefile
@@ -8,9 +8,17 @@ WWW=		https://pecl.php.net/package/crypto
 
 LICENSE=	PHP301
 
-USES=		compiler:c++11-lang php:pecl
+USES=		compiler:c++11-lang php:pecl ssl
+
 CONFIGURE_ARGS=	--with-crypto
+
 CFLAGS+=	-I${OPENSSLINC}
 LDFLAGS+=	-L${OPENSSLLIB}
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400091 || ( ${OSVERSION} >= 1302507 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=incompatible-function-pointer-types
+.endif
+
 .include <bsd.port.mk>



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