Compile x64 native dependencies as position independent code.
Some checks failed
Tagged release / prepare-release (push) Successful in 3m2s
Tagged release / build-linux-x64 (push) Failing after 28m35s
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 17:11:57 +00:00
parent 11c39e3f38
commit 5a2a98b89f
2 changed files with 4 additions and 0 deletions

View File

@@ -137,7 +137,9 @@ jobs:
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
CFLAGS_x86_64_unknown_linux_gnu: -fPIC
CXX_x86_64_unknown_linux_gnu: x86_64-linux-gnu-g++ CXX_x86_64_unknown_linux_gnu: x86_64-linux-gnu-g++
CXXFLAGS_x86_64_unknown_linux_gnu: -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,6 +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_x86_64_unknown_linux_gnu: -fPIC",
"CXXFLAGS_x86_64_unknown_linux_gnu: -fPIC",
] { ] {
assert!( assert!(
workflow.contains(required), workflow.contains(required),