Add liblsan packaging
authorSlava Barinov <v.barinov@samsung.com>
Tue, 28 Feb 2017 12:17:45 +0000 (15:17 +0300)
committerSlava Barinov <v.barinov@samsung.com>
Wed, 1 Mar 2017 08:47:12 +0000 (11:47 +0300)
Change-Id: I44084744a83cdc87e69b2a1f25cc4138bac31913
Signed-off-by: Slava Barinov <v.barinov@samsung.com>
packaging/gcc-aarch64.spec
packaging/gcc-armv7l.spec
packaging/linaro-gcc.spec

index 3789d9f..b17605d 100644 (file)
@@ -27,7 +27,7 @@
 %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 %ix86 armv7l aarch64
 %define ubsan_arch x86_64 %ix86 ppc ppc64 %arm aarch64
 %define cilkrts_arch x86_64 %ix86
 
@@ -501,6 +501,16 @@ The runtime library needed to run programs compiled with the
 %post -n libasan-32bit -p /sbin/ldconfig
 %postun -n libasan-32bit -p /sbin/ldconfig
 
+%package -n liblsan-32bit
+Summary:       The GNU Compiler Address Sanitizer Runtime Library
+License:       MIT
+Group:         Development/Languages
+%description -n liblsan-32bit
+The runtime library needed to run programs compiled with the
+-fsanitize=leak option of the GNU Compiler Collection (GCC).
+%post -n liblsan-32bit -p /sbin/ldconfig
+%postun -n liblsan-32bit -p /sbin/ldconfig
+
 %package -n libtsan-32bit
 Summary:       The GNU Compiler Thread Sanitizer Runtime Library
 License:       MIT
@@ -1128,6 +1138,13 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/
 %{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
index 32f66e0..f345695 100644 (file)
@@ -27,7 +27,7 @@
 %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 %ix86 armv7l aarch64
 %define ubsan_arch x86_64 %ix86 ppc ppc64 %arm aarch64
 %define cilkrts_arch x86_64 %ix86
 
@@ -501,6 +501,16 @@ The runtime library needed to run programs compiled with the
 %post -n libasan-32bit -p /sbin/ldconfig
 %postun -n libasan-32bit -p /sbin/ldconfig
 
+%package -n liblsan-32bit
+Summary:       The GNU Compiler Address Sanitizer Runtime Library
+License:       MIT
+Group:         Development/Languages
+%description -n liblsan-32bit
+The runtime library needed to run programs compiled with the
+-fsanitize=leak option of the GNU Compiler Collection (GCC).
+%post -n liblsan-32bit -p /sbin/ldconfig
+%postun -n liblsan-32bit -p /sbin/ldconfig
+
 %package -n libtsan-32bit
 Summary:       The GNU Compiler Thread Sanitizer Runtime Library
 License:       MIT
@@ -1128,6 +1138,13 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/
 %{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
index 18ff851..af16078 100644 (file)
@@ -24,7 +24,7 @@
 %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 %ix86 armv7l aarch64
 %define ubsan_arch x86_64 %ix86 ppc ppc64 %arm aarch64
 %define cilkrts_arch x86_64 %ix86
 
@@ -498,6 +498,16 @@ The runtime library needed to run programs compiled with the
 %post -n libasan-32bit -p /sbin/ldconfig
 %postun -n libasan-32bit -p /sbin/ldconfig
 
+%package -n liblsan-32bit
+Summary:       The GNU Compiler Address Sanitizer Runtime Library
+License:       MIT
+Group:         Development/Languages
+%description -n liblsan-32bit
+The runtime library needed to run programs compiled with the
+-fsanitize=leak option of the GNU Compiler Collection (GCC).
+%post -n liblsan-32bit -p /sbin/ldconfig
+%postun -n liblsan-32bit -p /sbin/ldconfig
+
 %package -n libtsan-32bit
 Summary:       The GNU Compiler Thread Sanitizer Runtime Library
 License:       MIT
@@ -1125,6 +1135,13 @@ install -m 0755 %{SOURCE23} %{buildroot}/%{_rpmconfigdir}/tizen/
 %{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