git: ce8aecf2886b - main - security/akmos: Fix build with llvm15
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 Jun 2023 13:23:40 UTC
The branch main has been updated by bofh:
URL: https://cgit.FreeBSD.org/ports/commit/?id=ce8aecf2886bfaff90d5b57f6a221e51577ba95d
commit ce8aecf2886bfaff90d5b57f6a221e51577ba95d
Author: Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-04 12:46:21 +0000
Commit: Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-04 13:23:26 +0000
security/akmos: Fix build with llvm15
- Pet portclippy
Approved by: portmgr (blanket)
---
security/akmos/Makefile | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/security/akmos/Makefile b/security/akmos/Makefile
index 05d97c4fcedf..82d620c8129d 100644
--- a/security/akmos/Makefile
+++ b/security/akmos/Makefile
@@ -13,14 +13,12 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= as:devel/binutils
USES= cmake compiler:c++11-lang
-
USE_GITHUB= yes
GH_ACCOUNT= melanhit
+USE_LDCONFIG= yes
GNU_CONFIGURE= yes
-USE_LDCONFIG= yes
-
# Fix build with clang11
CFLAGS+= -fcommon
@@ -38,4 +36,10 @@ BENCH_DESC= Install benchmark
TEST_CMAKE_ON= -DAKMOS_ENABLE_TEST:BOOL=TRUE
TEST_CMAKE_OFF= -DAKMOS_ENABLE_TEST:BOOL=FALSE
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+= -Wno-error=strict-prototypes
+.endif
+
+.include <bsd.port.post.mk>