From 771bf3df876de248c8f1bc30f07c4433bc41fe11 Mon Sep 17 00:00:00 2001 From: Yann Dirson Date: Wed, 10 Jan 2024 11:53:07 +0100 Subject: [PATCH] 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 --- .gitlab-ci.yml | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.39.5