Skip to content

Commit

Permalink
security/akmos: Fix build with llvm15
Browse files Browse the repository at this point in the history
- Pet portclippy

Approved by:	portmgr (blanket)
  • Loading branch information
5u623l20 committed Jun 4, 2023
1 parent fce113a commit ce8aecf
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions security/akmos/Makefile
Expand Up @@ -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

Expand All @@ -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>

0 comments on commit ce8aecf

Please sign in to comment.