mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-20 20:09:11 +00:00
security/libfido2: fix build on GCC architectures
Use newer compiler: /wrkdirs/usr/ports/security/libfido2/work/libfido2-1.4.0/src/fido.h:115: error: wrong number of arguments specified for '__deprecated__' attribute MFH: 2020Q3 (fix build blanket)
This commit is contained in:
parent
613f32fa9f
commit
fefa95929a
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=545127
@ -15,7 +15,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
LIB_DEPENDS= libcbor.so:devel/libcbor \
|
||||
libhidapi.so.0:comms/hidapi
|
||||
|
||||
USES= cmake compiler pkgconfig ssl
|
||||
USES= cmake compiler:c11 pkgconfig ssl
|
||||
|
||||
CFLAGS+= -D_WITH_GETLINE
|
||||
CMAKE_ON= USE_HIDAPI
|
||||
@ -29,8 +29,5 @@ OPTIONS_DEFINE= DOCS
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e '/libcrypto/d' ${WRKSRC}/CMakeLists.txt
|
||||
@${REINPLACE_CMD} -e 's|endian.h|sys/&|' ${WRKSRC}/CMakeLists.txt ${WRKSRC}/openbsd-compat/openbsd-compat.h
|
||||
.if ${CHOSEN_COMPILER_TYPE} == gcc
|
||||
@${REINPLACE_CMD} -e '/-Wno-unused-result/d; /-Wno-discarded-qualifiers/d' ${WRKSRC}/CMakeLists.txt
|
||||
.endif
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user