]> xenbits.xensource.com Git - xen-guest-agent.git/commitdiff
ci: add missing -L flag
authorYann Dirson <yann.dirson@vates.fr>
Wed, 10 Jan 2024 10:53:07 +0000 (11:53 +0100)
committerYann Dirson <yann.dirson@vates.fr>
Mon, 22 Jan 2024 13:48:53 +0000 (14:48 +0100)
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 <yann.dirson@vates.fr>
.gitlab-ci.yml

index 12d464d16d0774850c62d3e3539167117debb08d..eb225a484721fcdfb451e10103ab6a07e1d38f38 100644 (file)
@@ -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