Pass PIC directly to x64 cross compilers.
Some checks failed
Tagged release / prepare-release (push) Successful in 3m1s
Tagged release / build-linux-x64 (push) Failing after 29m28s
Tagged release / build-macos (push) Has been skipped
Tagged release / build-linux-arm64 (push) Has been skipped
Tagged release / build-windows (push) Has been skipped
Tagged release / publish-release (push) Has been skipped

This commit is contained in:
Hermes Agent
2026-08-14 18:27:11 +00:00
parent 4c3e260961
commit f21aab5910
2 changed files with 4 additions and 6 deletions

View File

@@ -136,10 +136,8 @@ jobs:
runs-on: linux-arm64 runs-on: linux-arm64
env: env:
AR_x86_64_unknown_linux_gnu: x86_64-linux-gnu-ar AR_x86_64_unknown_linux_gnu: x86_64-linux-gnu-ar
CC_x86_64_unknown_linux_gnu: x86_64-linux-gnu-gcc CC_x86_64_unknown_linux_gnu: x86_64-linux-gnu-gcc -fPIC
CFLAGS: -fPIC CXX_x86_64_unknown_linux_gnu: x86_64-linux-gnu-g++ -fPIC
CXX_x86_64_unknown_linux_gnu: x86_64-linux-gnu-g++
CXXFLAGS: -fPIC
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER: x86_64-linux-gnu-gcc CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER: x86_64-linux-gnu-gcc
CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS: -C link-arg=--sysroot=/opt/ruds-x64-sysroot -C link-arg=-Wl,-rpath,$ORIGIN -L native=/opt/ruds-x64-sysroot/usr/lib/x86_64-linux-gnu -L native=/opt/ruds-x64-sysroot/lib/x86_64-linux-gnu CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_RUSTFLAGS: -C link-arg=--sysroot=/opt/ruds-x64-sysroot -C link-arg=-Wl,-rpath,$ORIGIN -L native=/opt/ruds-x64-sysroot/usr/lib/x86_64-linux-gnu -L native=/opt/ruds-x64-sysroot/lib/x86_64-linux-gnu
PKG_CONFIG_ALLOW_CROSS: "1" PKG_CONFIG_ALLOW_CROSS: "1"

View File

@@ -148,8 +148,8 @@ fn tagged_releases_are_built_and_packaged_with_rust_tools() {
"publish", "publish",
"PKG_CONFIG_ALLOW_CROSS", "PKG_CONFIG_ALLOW_CROSS",
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER", "CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER",
"CFLAGS: -fPIC", "CC_x86_64_unknown_linux_gnu: x86_64-linux-gnu-gcc -fPIC",
"CXXFLAGS: -fPIC", "CXX_x86_64_unknown_linux_gnu: x86_64-linux-gnu-g++ -fPIC",
] { ] {
assert!( assert!(
workflow.contains(required), workflow.contains(required),