Currently libasan.so, libtsan.so and liblsan.so symlinks are packaged
into gcc.rpm but asan-build-env script pushes 'libasan.so' name without
suffix into /etc/ld.so.preload which breaks sanitized builds.
Now they are moved into corresponding packages and will be created
during sanitizer rpm installation.
Change-Id: I0917185adb0084048ef54c1cf9b40874006b71e0
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
%{libsubdir}/include/cilk/*
%endif
%{libsubdir}/include/sanitizer/*
+%ifarch %asan_arch
+%exclude %{libdir}/libasan.so
+%endif
+%ifarch %lsan_arch
+%exclude %{libdir}/liblsan.so
+%endif
+%ifarch %tsan_arch
+%exclude %{libdir}/libtsan.so
+%endif
%files c++
%defattr(-,root,root)
%ifarch %asan_arch
%files -n libasan
%defattr(-,root,root)
-%{libdir}/libasan.so.*
+%{libdir}/libasan.so*
%endif
%ifarch %lsan_arch
%files -n liblsan
%defattr(-,root,root)
-%{libdir}/liblsan.so.*
+%{libdir}/liblsan.so*
%endif
%ifarch %tsan_arch
%files -n libtsan
%defattr(-,root,root)
-%{libdir}/libtsan.so.*
+%{libdir}/libtsan.so*
%endif
%ifarch %atomic_arch
%{libsubdir}/include/cilk/*
%endif
%{libsubdir}/include/sanitizer/*
+%ifarch %asan_arch
+%exclude %{libdir}/libasan.so
+%endif
+%ifarch %lsan_arch
+%exclude %{libdir}/liblsan.so
+%endif
+%ifarch %tsan_arch
+%exclude %{libdir}/libtsan.so
+%endif
%files c++
%defattr(-,root,root)
%ifarch %asan_arch
%files -n libasan
%defattr(-,root,root)
-%{libdir}/libasan.so.*
+%{libdir}/libasan.so*
%endif
%ifarch %lsan_arch
%files -n liblsan
%defattr(-,root,root)
-%{libdir}/liblsan.so.*
+%{libdir}/liblsan.so*
%endif
%ifarch %tsan_arch
%files -n libtsan
%defattr(-,root,root)
-%{libdir}/libtsan.so.*
+%{libdir}/libtsan.so*
%endif
%ifarch %atomic_arch
%{libsubdir}/include/cilk/*
%endif
%{libsubdir}/include/sanitizer/*
+%ifarch %asan_arch
+%exclude %{libdir}/libasan.so
+%endif
+%ifarch %lsan_arch
+%exclude %{libdir}/liblsan.so
+%endif
+%ifarch %tsan_arch
+%exclude %{libdir}/libtsan.so
+%endif
%files c++
%defattr(-,root,root)
%ifarch %asan_arch
%files -n libasan
%defattr(-,root,root)
-%{libdir}/libasan.so.*
+%{libdir}/libasan.so*
%endif
%ifarch %lsan_arch
%files -n liblsan
%defattr(-,root,root)
-%{libdir}/liblsan.so.*
+%{libdir}/liblsan.so*
%endif
%ifarch %tsan_arch
%files -n libtsan
%defattr(-,root,root)
-%{libdir}/libtsan.so.*
+%{libdir}/libtsan.so*
%endif
%ifarch %atomic_arch