disable musl for loongarch64
This commit is contained in:
parent
d5d6e44d5e
commit
c937cf1951
15
rust.spec
15
rust.spec
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
Name: rust
|
Name: rust
|
||||||
Version: 1.77.0
|
Version: 1.77.0
|
||||||
Release: 3
|
Release: 4
|
||||||
Summary: The Rust Programming Language
|
Summary: The Rust Programming Language
|
||||||
License: Apache-2.0 OR MIT
|
License: Apache-2.0 OR MIT
|
||||||
URL: https://www.rust-lang.org
|
URL: https://www.rust-lang.org
|
||||||
@ -44,6 +44,8 @@ Patch1000: embed-riscv64-target-abi-in-bc-when-plugin-_-lto-is-used.pa
|
|||||||
arch = "powerpc64le"
|
arch = "powerpc64le"
|
||||||
elseif arch == "riscv64" then
|
elseif arch == "riscv64" then
|
||||||
arch = "riscv64gc"
|
arch = "riscv64gc"
|
||||||
|
elseif arch == "loongarch64" then
|
||||||
|
arch = "loongarch64"
|
||||||
end
|
end
|
||||||
return arch.."-unknown-linux-"..abi
|
return arch.."-unknown-linux-"..abi
|
||||||
end}
|
end}
|
||||||
@ -332,8 +334,12 @@ test -r "%{profiler}"
|
|||||||
|
|
||||||
%configure --disable-option-checking \
|
%configure --disable-option-checking \
|
||||||
--libdir=%{common_libdir} \
|
--libdir=%{common_libdir} \
|
||||||
|
%ifarch loongarch64
|
||||||
|
--build=%{rust_triple} --host=%{rust_triple} --target=%{rust_triple} \
|
||||||
|
%else
|
||||||
%{rust_musl_root}=%{musl_root} \
|
%{rust_musl_root}=%{musl_root} \
|
||||||
--build=%{rust_triple} --host=%{rust_triple} --target=%{rust_triple},%{rust_musl_triple} \
|
--build=%{rust_triple} --host=%{rust_triple} --target=%{rust_triple},%{rust_musl_triple} \
|
||||||
|
%endif
|
||||||
--set target.%{rust_triple}.profiler="%{profiler}" \
|
--set target.%{rust_triple}.profiler="%{profiler}" \
|
||||||
--python=%{python} \
|
--python=%{python} \
|
||||||
--local-rust-root=%{local_rust_root} \
|
--local-rust-root=%{local_rust_root} \
|
||||||
@ -431,20 +437,24 @@ export %{rust_env}
|
|||||||
%{_libexecdir}/rust-analyzer-proc-macro-srv
|
%{_libexecdir}/rust-analyzer-proc-macro-srv
|
||||||
%endif
|
%endif
|
||||||
%{rustlibdir}/%{rust_triple}/lib/*.so
|
%{rustlibdir}/%{rust_triple}/lib/*.so
|
||||||
|
%ifnarch loongarch64
|
||||||
%dir %{rustlibdir}/%{rust_musl_triple}
|
%dir %{rustlibdir}/%{rust_musl_triple}
|
||||||
%dir %{rustlibdir}/%{rust_musl_triple}/lib
|
%dir %{rustlibdir}/%{rust_musl_triple}/lib
|
||||||
|
%endif
|
||||||
|
|
||||||
%files std-static
|
%files std-static
|
||||||
%dir %{rustlibdir}
|
%dir %{rustlibdir}
|
||||||
%dir %{rustlibdir}/%{rust_triple}
|
%dir %{rustlibdir}/%{rust_triple}
|
||||||
%dir %{rustlibdir}/%{rust_triple}/lib
|
%dir %{rustlibdir}/%{rust_triple}/lib
|
||||||
%{rustlibdir}/%{rust_triple}/lib/*.rlib
|
%{rustlibdir}/%{rust_triple}/lib/*.rlib
|
||||||
|
%ifnarch loongarch64
|
||||||
%dir %{rustlibdir}/%{rust_musl_triple}
|
%dir %{rustlibdir}/%{rust_musl_triple}
|
||||||
%dir %{rustlibdir}/%{rust_musl_triple}/lib
|
%dir %{rustlibdir}/%{rust_musl_triple}/lib
|
||||||
%{rustlibdir}/%{rust_musl_triple}/lib/*.rlib
|
%{rustlibdir}/%{rust_musl_triple}/lib/*.rlib
|
||||||
%{rustlibdir}/%{rust_musl_triple}/lib/self-contained/*.o
|
%{rustlibdir}/%{rust_musl_triple}/lib/self-contained/*.o
|
||||||
%{rustlibdir}/%{rust_musl_triple}/lib/self-contained/libunwind.a
|
%{rustlibdir}/%{rust_musl_triple}/lib/self-contained/libunwind.a
|
||||||
%{rustlibdir}/%{rust_musl_triple}/lib/self-contained/libc.a
|
%{rustlibdir}/%{rust_musl_triple}/lib/self-contained/libc.a
|
||||||
|
%endif
|
||||||
|
|
||||||
%files debugger-common
|
%files debugger-common
|
||||||
%dir %{rustlibdir}
|
%dir %{rustlibdir}
|
||||||
@ -509,6 +519,9 @@ export %{rust_env}
|
|||||||
%{_mandir}/man1/cargo*.1*
|
%{_mandir}/man1/cargo*.1*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jun 05 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 1.77.0-4
|
||||||
|
- disable musl for loongarch64
|
||||||
|
|
||||||
* Mon Apr 22 2024 panchenbo <panchenbo@kylinsec.com.cn> - 1.77.0-3
|
* Mon Apr 22 2024 panchenbo <panchenbo@kylinsec.com.cn> - 1.77.0-3
|
||||||
- Modify openEuler to vendor
|
- Modify openEuler to vendor
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user