From f317737faeb8c6445e881ac5a49432bf2ac1aa08 Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Tue, 30 Oct 2018 18:38:31 -0300 Subject: [PATCH] cargo: Ensure libssh2 from system is used This forces the use of libssh2 by exporting the LIBSSH2_SYS_USE_PKG_CONFIG environment variable. Signed-off-by: Otavio Salvador --- recipes-devtools/cargo/cargo.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes-devtools/cargo/cargo.inc b/recipes-devtools/cargo/cargo.inc index 2cccef2..ce9a065 100644 --- a/recipes-devtools/cargo/cargo.inc +++ b/recipes-devtools/cargo/cargo.inc @@ -6,7 +6,8 @@ LIC_FILES_CHKSUM += " \ file://LICENSE-THIRD-PARTY;md5=892ea68b169e69cfe75097fc38a15b56 \ " -# Used in libgit2-sys's build.rs, needed for pkg-config to be used +# Needed for pkg-config to be used export LIBGIT2_SYS_USE_PKG_CONFIG = "1" +export LIBSSH2_SYS_USE_PKG_CONFIG = "1" BBCLASSEXTEND = "native"