%bcond_without profiling # build without profiling
%bcond_without python # build without libstdc++ printers for gdb and aot-compile for java
%bcond_without asan # build without Address Sanitizer library
+%bcond_without lsan # build without Leak Sanitizer library
%bcond_without tsan # build without Thread Sanitizer library
%bcond_without atomic # build without library for atomic operations not supported by hardware
%bcond_with gcc_libffi # packaging gcc libffi for system usage
%ifnarch %{x8664}
%undefine with_tsan
+%undefine with_lsan
%endif
%ifarch sparc64
%{?with_fortran:libgfortran.la libquadmath.la} \
%{?with_gomp:libgomp.la} \
%{?with_asan:libasan.la} \
- liblsan.la \
+ %{?with_lsan:liblsan.la} \
%{?with_tsan:libtsan.la} \
libubsan.la \
%{?with_atomic:libatomic.la} \
%endif
%endif
+%if %{with lsan}
%files -n liblsan
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/liblsan.so.*.*.*
%files -n liblsan-static
%defattr(644,root,root,755)
%{_libdir}/liblsan.a
+%endif
%if %{with tsan}
%files -n libtsan