We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc8d356 commit 82bee8fCopy full SHA for 82bee8f
build/lin.sh
@@ -85,6 +85,12 @@ export CARGO_PROFILE_RELEASE_PANIC=abort
85
# https://reproducible-builds.org/docs/build-path/
86
export RUSTFLAGS+=" --remap-path-prefix=$CARGO_HOME/registry/="
87
88
+# Ensure Cargo uses correct linker when cross-compiling
89
+if [ "$LINUX" = true ] && [ -n "$CHOST" ]; then
90
+ echo "[target.${RUST_TARGET}]" >> "$CARGO_HOME/config"
91
+ echo "linker = \"${CHOST}-gcc\"" >> "$CARGO_HOME/config"
92
+fi
93
+
94
# We don't want to use any native libraries, so unset PKG_CONFIG_PATH
95
unset PKG_CONFIG_PATH
96
0 commit comments