%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
Summary(pt_BR.UTF-8): Coleção dos compiladores GNU: o compilador C e arquivos compartilhados
Name: gcc
Version: %{major_ver}.%{minor_ver}
-Release: 1
+Release: 3
Epoch: 6
License: GPL v3+
Group: Development/Languages
Source3: libffi.pc.in
# svn diff -x --ignore-eol-style --force svn://gcc.gnu.org/svn/gcc/tags/gcc_4_9_2_release svn://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch > gcc-branch.diff
Patch100: %{name}-branch.diff
-# Patch100-md5: 66e843617ce0bfe9764059752a9706d6
+# Patch100-md5: 1f1a11566ddf413cca96fbb04fd790d4
Patch0: %{name}-info.patch
Patch1: %{name}-cloog.patch
Patch2: %{name}-nodebug.patch
Patch3: %{name}-ada-link.patch
-Patch5: %{name}-4.9-isl-0.13-hack.patch
Patch6: %{name}-pr61164.patch
Patch7: %{name}-libjava-multilib.patch
Patch8: %{name}-enable-java-awt-qt.patch
%patch2 -p1
%patch3 -p1
-%patch5 -p1
%patch6 -p1
%patch7 -p0
%if %{with qt}
--enable-threads=posix \
--disable-werror \
--with-cloog \
-%ifarch %{ix86}
- --with-arch=x86-64 \
-%endif
%ifarch %{x8664}
--with-arch-32=x86-64 \
%endif
%{?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