aboutsummaryrefslogtreecommitdiff
path: root/security/openssh-portable/files/extra-patch-libfido2-configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'security/openssh-portable/files/extra-patch-libfido2-configure.ac')
-rw-r--r--security/openssh-portable/files/extra-patch-libfido2-configure.ac16
1 files changed, 16 insertions, 0 deletions
diff --git a/security/openssh-portable/files/extra-patch-libfido2-configure.ac b/security/openssh-portable/files/extra-patch-libfido2-configure.ac
new file mode 100644
index 000000000000..6cd9a550119b
--- /dev/null
+++ b/security/openssh-portable/files/extra-patch-libfido2-configure.ac
@@ -0,0 +1,16 @@
+Workaround libfido2 package having a libfido2.pc that requires libcrypto
+even with base OpenSSL which does not provide the proper pc file.
+
+--- configure.ac.orig 2020-11-19 14:21:03.890890000 -0800
++++ configure.ac 2020-11-19 14:21:57.061193000 -0800
+@@ -3256,8 +3256,8 @@ if test "x$enable_sk" = "xyes" -a "x$enable_sk_interna
+ fi
+ fi
+ if test "x$use_pkgconfig_for_libfido2" = "xyes"; then
+- LIBFIDO2=`$PKGCONFIG --libs libfido2`
+- CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libfido2`"
++ LIBFIDO2="-lfido2 -lcrypto"
++ #CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags libfido2`"
+ else
+ LIBFIDO2="-lfido2 -lcbor"
+ fi