%define asan_arch x86_64 %ix86 ppc ppc64 %sparc %arm aarch64
%define itm_arch x86_64 %ix86 %arm ppc ppc64 ppc64le s390 s390x %sparc aarch64
%define atomic_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc m68k
-%define lsan_arch x86_64 aarch64
+%define lsan_arch x86_64 aarch64 %arm %ix86
%define ubsan_arch x86_64 %ix86 ppc ppc64 %arm aarch64
%define cilkrts_arch x86_64 %ix86
%{libsubdir}/32/libasan.so.*
%endif
+%ifarch %lsan_arch
+%files -n liblsan-32bit
+%manifest gcc.manifest
+%defattr(-,root,root)
+%{libsubdir}/32/liblsan.so.*
+%endif
+
%ifarch %atomic_arch
%files -n libatomic-32bit
%manifest gcc.manifest
%define asan_arch x86_64 %ix86 ppc ppc64 %sparc %arm aarch64
%define itm_arch x86_64 %ix86 %arm ppc ppc64 ppc64le s390 s390x %sparc aarch64
%define atomic_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc m68k
-%define lsan_arch x86_64 aarch64
+%define lsan_arch x86_64 aarch64 %arm %ix86
%define ubsan_arch x86_64 %ix86 ppc ppc64 %arm aarch64
%define cilkrts_arch x86_64 %ix86
%{libsubdir}/32/libasan.so.*
%endif
+%ifarch %lsan_arch
+%files -n liblsan-32bit
+%manifest gcc.manifest
+%defattr(-,root,root)
+%{libsubdir}/32/liblsan.so.*
+%endif
+
%ifarch %atomic_arch
%files -n libatomic-32bit
%manifest gcc.manifest
%define asan_arch x86_64 %ix86 ppc ppc64 %sparc %arm aarch64
%define itm_arch x86_64 %ix86 %arm ppc ppc64 ppc64le s390 s390x %sparc aarch64
%define atomic_arch x86_64 %ix86 %arm aarch64 ppc ppc64 ppc64le s390 s390x %sparc m68k
-%define lsan_arch x86_64 aarch64
+%define lsan_arch x86_64 aarch64 %arm %ix86
%define ubsan_arch x86_64 %ix86 ppc ppc64 %arm aarch64
%define cilkrts_arch x86_64 %ix86
%{libsubdir}/32/libasan.so.*
%endif
+%ifarch %lsan_arch
+%files -n liblsan-32bit
+%manifest gcc.manifest
+%defattr(-,root,root)
+%{libsubdir}/32/liblsan.so.*
+%endif
+
%ifarch %atomic_arch
%files -n libatomic-32bit
%manifest gcc.manifest