Add export PKG_CONFIG_ALLOW_CROSS to PreCompile.sh (#55909)

From the rust-g README
This commit is contained in:
Jordan Brown
2021-01-06 13:44:16 -03:00
committed by GitHub
parent 3ce77b8f0e
commit 005d961787
+1
View File
@@ -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 ..