From 03618acc2d013023dbbc062fc9837c337d8ee893 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Fri, 31 Jan 2025 14:13:10 +0530 Subject: [PATCH] fix(copr): modify rust linker config for aarch64 fedora packages --- package/copr/lune.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package/copr/lune.spec b/package/copr/lune.spec index 782df5e..baa13f5 100644 --- a/package/copr/lune.spec +++ b/package/copr/lune.spec @@ -40,7 +40,11 @@ Requires: glibc %setup -q -n lune-%{version} # Removes the first line containing clippy lint attribute which is falsely flagged as a shebang in build find . -type f -name "*.rs" -exec perl -i -ne 'print unless /^\#!\[/ ' {} + - +cat < .cargo/config.toml +[target.aarch64-unknown-linux-gnu] +linker = "aarch64-linux-gnu-gcc" +rustflags = ["-L", "/usr/lib/gcc/aarch64-linux-gnu/14"] +EOF %build just build --locked --release