From: Yann Dirson Date: Wed, 10 Jan 2024 10:53:07 +0000 (+0100) Subject: ci: add missing -L flag X-Git-Tag: 0.4.0~6^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=771bf3df876de248c8f1bc30f07c4433bc41fe11;p=xen-guest-agent.git ci: add missing -L flag For some reason neither cross-rs nor pkg-config tells rustc that cross libs do live in the sysroot. Only a problem for static linking, since that's the only use-case we have besides dlopen. Signed-off-by: Yann Dirson --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 12d464d..eb225a4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -53,6 +53,8 @@ variables: - mkdir -p $CROSS_SYSROOT/usr - ln -s ../include $CROSS_SYSROOT/usr/include - ln -s ../lib $CROSS_SYSROOT/usr/lib + # link will not look for the proper libs otherwise + - export RUSTFLAGS="-L$CROSS_SYSROOT/usr/lib" # build dependencies - export FREEBSD_MIRROR=$(/freebsd-fetch-best-mirror.sh) - /freebsd-setup-packagesite.sh