mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-03-01 00:43:35 +00:00
fix(copr): modify rust linker config for aarch64 fedora packages
This commit is contained in:
parent
04cc042671
commit
03618acc2d
1 changed files with 5 additions and 1 deletions
|
@ -40,7 +40,11 @@ Requires: glibc
|
||||||
%setup -q -n lune-%{version}
|
%setup -q -n lune-%{version}
|
||||||
# Removes the first line containing clippy lint attribute which is falsely flagged as a shebang in build
|
# 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 /^\#!\[/ ' {} +
|
find . -type f -name "*.rs" -exec perl -i -ne 'print unless /^\#!\[/ ' {} +
|
||||||
|
cat <<EOF> .cargo/config.toml
|
||||||
|
[target.aarch64-unknown-linux-gnu]
|
||||||
|
linker = "aarch64-linux-gnu-gcc"
|
||||||
|
rustflags = ["-L", "/usr/lib/gcc/aarch64-linux-gnu/14"]
|
||||||
|
EOF
|
||||||
|
|
||||||
%build
|
%build
|
||||||
just build --locked --release
|
just build --locked --release
|
||||||
|
|
Loading…
Add table
Reference in a new issue