Skip to content

Commit

Permalink
security/libfido2: Simplified Makefile
Browse files Browse the repository at this point in the history
OPENSSL_API_COMPAT=0x10101000L can be set unconditionally.

from CMakeLists.txt:
	if(CRYPTO_VERSION VERSION_GREATER_EQUAL 3.0)
		add_definitions(-DOPENSSL_API_COMPAT=0x10100000L)
	endif()

PR:		273909
  • Loading branch information
sunpoet committed Oct 16, 2023
1 parent 3c4e074 commit 2a1f1b7
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions security/libfido2/Makefile
Expand Up @@ -15,6 +15,7 @@ LIB_DEPENDS= libcbor.so:devel/libcbor

USES= cmake compiler:c11 pathfix pkgconfig ssl

CFLAGS+= -DOPENSSL_API_COMPAT=0x10101000L
CMAKE_OFF= FUZZ LIBFUZZER NFC_LINUX USE_HIDAPI USE_WINHELLO
CMAKE_ON= BUILD_EXAMPLES BUILD_MANPAGES BUILD_SHARED_LIBS BUILD_STATIC_LIBS BUILD_TOOLS

Expand All @@ -29,8 +30,4 @@ OPTIONS_DEFINE= DOCS
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-openssl
.endif

.if ${SSL_DEFAULT} == openssl
CFLAGS+= -DOPENSSL_API_COMPAT=0x10100000L
.endif

.include <bsd.port.post.mk>

0 comments on commit 2a1f1b7

Please sign in to comment.