From 93942379cced89ad4ac653f262ac8277a8550853 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Tue, 26 Oct 2021 17:15:54 -0400 Subject: [PATCH] Avoid building libfido2 if WITHOUT_USB libfido2 requires USB, so disable it if not available. Reported by: peterj Fixes: 7b1e19ad78c6 ("Add libfido2 to the build") Sponsored by: The FreeBSD Foundation --- lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Makefile b/lib/Makefile index 81ace36ba990..3f30917173af 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -215,7 +215,7 @@ SUBDIR.${MK_BHYVE}+= libvmmapi .if ${MACHINE_ARCH} != "powerpc" SUBDIR.${MK_OPENMP}+= libomp .endif -.if !defined(COMPAT_32BIT) +.if !defined(COMPAT_32BIT) && ${MK_USB} != "no" SUBDIR.${MK_OPENSSH}+= libcbor libfido2 .endif SUBDIR.${MK_OPENSSL}+= libmp