Fix glium package build

This commit is contained in:
Jeremy Soller 2021-07-14 13:07:27 -06:00
parent cf861a663a
commit a20008ee14
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -6,12 +6,11 @@ CARGOFLAGS="--example teapot"
function recipe_build {
sysroot="$(realpath ../sysroot)"
cp -p "$ROOT/Xargo.toml" "Xargo.toml"
set -x
xargo rustc --target "$TARGET" --release ${CARGOFLAGS} \
cargo rustc --target "$TARGET" --release ${CARGOFLAGS} \
-- \
-L "${sysroot}/lib" \
-C link-args="$("${PKG_CONFIG}" --libs osmesa) -lglapi -lz -lstdc++ -lc -lgcc"
-C link-args="-Wl,-Bstatic $("${PKG_CONFIG}" --libs osmesa) -lstdc++ -lc -lgcc"
set +x
skip=1
}