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>
- 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