Apply PIC flags to all x64 native builds.
Some checks failed
Tagged release / prepare-release (push) Successful in 3m0s
Tagged release / build-linux-x64 (push) Failing after 28m43s
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:51:18 +00:00
parent 5a2a98b89f
commit 4c3e260961
2 changed files with 4 additions and 4 deletions

View File

@@ -137,9 +137,9 @@ jobs:
env:
AR_x86_64_unknown_linux_gnu: x86_64-linux-gnu-ar
CC_x86_64_unknown_linux_gnu: x86_64-linux-gnu-gcc
CFLAGS_x86_64_unknown_linux_gnu: -fPIC
CFLAGS: -fPIC
CXX_x86_64_unknown_linux_gnu: x86_64-linux-gnu-g++
CXXFLAGS_x86_64_unknown_linux_gnu: -fPIC
CXXFLAGS: -fPIC
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
PKG_CONFIG_ALLOW_CROSS: "1"

View File

@@ -148,8 +148,8 @@ fn tagged_releases_are_built_and_packaged_with_rust_tools() {
"publish",
"PKG_CONFIG_ALLOW_CROSS",
"CARGO_TARGET_X86_64_UNKNOWN_LINUX_GNU_LINKER",
"CFLAGS_x86_64_unknown_linux_gnu: -fPIC",
"CXXFLAGS_x86_64_unknown_linux_gnu: -fPIC",
"CFLAGS: -fPIC",
"CXXFLAGS: -fPIC",
] {
assert!(
workflow.contains(required),