From 76bb0c52c62693d81908f12c86732cf3f7573461 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Thu, 7 Jan 2021 00:15:10 +0100 Subject: [PATCH] [MIRROR] Add export PKG_CONFIG_ALLOW_CROSS to PreCompile.sh (#2527) * Add export PKG_CONFIG_ALLOW_CROSS to PreCompile.sh (#55909) From the rust-g README * Add export PKG_CONFIG_ALLOW_CROSS to PreCompile.sh Co-authored-by: Jordan Brown --- tools/tgs4_scripts/PreCompile.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/tgs4_scripts/PreCompile.sh b/tools/tgs4_scripts/PreCompile.sh index cc74790c307..1d16ae3d2f6 100755 --- a/tools/tgs4_scripts/PreCompile.sh +++ b/tools/tgs4_scripts/PreCompile.sh @@ -61,6 +61,7 @@ fi echo "Deploying rust-g..." git checkout "$RUST_G_VERSION" +export PKG_CONFIG_ALLOW_CROSS=1 ~/.cargo/bin/cargo build --release --target=i686-unknown-linux-gnu mv target/i686-unknown-linux-gnu/release/librust_g.so "$1/rust_g" cd ..