SPEC: fix libcc1 file path for LoongArch
Signed-off-by: ticat_fp <fanpeng@loongson.cn>
This commit is contained in:
parent
1dc8dd9fd8
commit
0232b24327
14
gcc.spec
14
gcc.spec
@ -2,7 +2,7 @@
|
||||
%global gcc_major 12
|
||||
# Note, gcc_release must be integer, if you want to add suffixes to
|
||||
# %%{release}, append them after %%{gcc_release} on Release: line.
|
||||
%global gcc_release 18
|
||||
%global gcc_release 19
|
||||
|
||||
%global _unpackaged_files_terminate_build 0
|
||||
%global _performance_build 1
|
||||
@ -1802,11 +1802,7 @@ strip -g `find . \( -name libgfortran.a -o -name libobjc.a -o -name libgomp.a \
|
||||
popd
|
||||
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgfortran.so.5.*
|
||||
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgomp.so.1.*
|
||||
%ifarch loongarch64
|
||||
chmod 755 %{buildroot}%{_prefix}/lib64/libcc1.so.0.*
|
||||
%else
|
||||
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libcc1.so.0.*
|
||||
%endif
|
||||
%if %{build_libquadmath}
|
||||
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libquadmath.so.0.*
|
||||
%endif
|
||||
@ -3168,11 +3164,7 @@ end
|
||||
%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/plugin
|
||||
|
||||
%files gdb-plugin
|
||||
%ifarch loongarch64
|
||||
%{_prefix}/lib64/libcc1.so*
|
||||
%else
|
||||
%{_prefix}/%{_lib}/libcc1.so*
|
||||
%endif
|
||||
%dir %{_prefix}/lib/gcc
|
||||
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}
|
||||
%dir %{_prefix}/lib/gcc/%{gcc_target_platform}/%{gcc_major}
|
||||
@ -3182,6 +3174,10 @@ end
|
||||
%doc rpm.doc/changelogs/libcc1/ChangeLog*
|
||||
|
||||
%changelog
|
||||
* Mon Apr 1 2024 Peng Fan <fanpeng@loongson.cn> 12.3.1-19
|
||||
- Type: SPEC
|
||||
- DESC: fix libcc1 file path for LoongArch.
|
||||
|
||||
* Wed Mar 27 2024 Peng Fan <fanpeng@loongson.cn> 12.3.1-18
|
||||
- Type: Sync
|
||||
- DESC: Sync patch from gcc upstream
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user