diff --git a/llvm-compat.spec b/llvm-compat.spec index b8b1bb877102af044c568511979dc0dbb942f0fc..ce7335dd43011ba575d26fb380b969bf7e4f24c3 100644 --- a/llvm-compat.spec +++ b/llvm-compat.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.1 +%define anolis_release .0.2 %global maj_ver 15 %global min_ver 0 %global patch_ver 7 @@ -130,16 +130,11 @@ DESTDIR=%{buildroot} %__ninja %__ninja_common_opts popd -# Remove all static archives to avoid running out of disk space on aarch64. -find . -iname '*.a' -delete - %install cd .. -DESTDIR=%{buildroot} %__ninja %__ninja_common_opts -l 8 install-LLVM -C llvm-build - -mkdir -p %{buildroot}%{pkg_libdir} -install llvm-build/lib/*.so.* %{buildroot}%{pkg_libdir} +DESTDIR=%{buildroot} %__ninja %__ninja_common_opts -l 8 -C llvm-build \ + install-LLVM install-libclang install-clang-cpp # Create ld.so.conf.d entry mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d @@ -147,9 +142,9 @@ cat >> %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf << EOF %{pkg_libdir} EOF -for f in libLTO.so libRemarks.so; do - rm -Rf %{buildroot}%{pkg_libdir}/$f.%{maj_ver} -done +# Remove unversioned symlinks +rm -Rf %{buildroot}%{pkg_libdir}/libclang.so +rm -Rf %{buildroot}%{pkg_libdir}/libclang-cpp.so %check @@ -167,6 +162,9 @@ done %endif %changelog +* Thu Sep 11 2025 Hong Wei Qin - 15.0.7-1.0.2 +- Use install targets for clang as well + * Mon Dec 23 2024 Chen Li - 15.0.7-1.0.1 - Add support for LoongArch