From 5f5a55c2bb7456599bc5fe03f1cc613681265069 Mon Sep 17 00:00:00 2001 From: Johannes Date: Mon, 19 Nov 2018 20:19:24 +0100 Subject: [PATCH] build-style/cargo.sh: export common variables to avoid static linking --- common/environment/build-style/cargo.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/environment/build-style/cargo.sh b/common/environment/build-style/cargo.sh index b311a72446e..c4854574e88 100644 --- a/common/environment/build-style/cargo.sh +++ b/common/environment/build-style/cargo.sh @@ -5,3 +5,9 @@ if [ "$CROSS_BUILD" ]; then fi export PKG_CONFIG_ALLOW_CROSS=1 + +export LIBGIT2_SYS_USE_PKG_CONFIG=1 +export GETTEXT_BIN_DIR=/usr/bin +export GETTEXT_LIB_DIR="${XBPS_CROSS_BASE}/usr/lib/gettext" +export GETTEXT_INCLUDE_DIR="${XBPS_CROSS_BASE}/usr/include" +export LIBSSH2_SYS_USE_PKG_CONFIG=1