1 Commits

Author SHA1 Message Date
7d16607a31 Add -z pack-relative-relocs to RUSTFLAGS
rustc/cargo ignores LDFLAGS and requires the linker flags to be passed
via `-Clink-arg=` in RUSTFLAGS.
2023-06-05 17:11:58 +02:00

View File

@@ -20,7 +20,7 @@ common:
packager: "ALHP $march$ <alhp@harting.dev>" packager: "ALHP $march$ <alhp@harting.dev>"
makeflags: "-j$buildproc$" makeflags: "-j$buildproc$"
# https://somegit.dev/ALHP/ALHP.GO/issues/110 # https://somegit.dev/ALHP/ALHP.GO/issues/110
rustflags: "-Copt-level=3 -Ctarget-cpu=$march$" rustflags: "-Copt-level=3 -Ctarget-cpu=$march$ -Clink-arg=-Wl,-z,pack-relative-relocs"
ltoflags: ltoflags:
- "-falign-functions=32" # https://github.com/InBetweenNames/gentooLTO/issues/164 - "-falign-functions=32" # https://github.com/InBetweenNames/gentooLTO/issues/164
kcflags: " -march=$march$ -O3" kcflags: " -march=$march$ -O3"