--- /dev/null
+--- libstdc++-v3/configure.orig 2012-03-02 08:13:55.000000000 +0100
++++ libstdc++-v3/configure 2012-03-25 12:31:53.278684698 +0200
+@@ -64773,7 +64773,7 @@
+ esac
+
+ else
+- enable_symvers=yes
++ enable_symvers=gnu-versioned-namespace
+ fi
+
+
+--- libstdc++-v3/configure.ac.orig 2012-03-25 12:31:14.966921062 +0200
++++ libstdc++-v3/configure.ac 2012-03-25 12:30:07.363809031 +0200
+@@ -308,7 +308,7 @@
+
+ GCC_HEADER_STDINT(include/gstdint.h)
+
+-GLIBCXX_ENABLE_SYMVERS([yes])
++GLIBCXX_ENABLE_SYMVERS([gnu-versioned-namespace])
+ AC_SUBST(libtool_VERSION)
+
+ GLIBCXX_ENABLE_LIBSTDCXX_VISIBILITY([yes])
# - other:
%bcond_without bootstrap # omit 3-stage bootstrap
%bcond_with tests # torture gcc
+%bcond_with symvers # enable versioned symbols in libstdc++ (WARNING: changes soname from .so.6 to so.7)
+
+%if %{with symvers}
+%define cxx_sover 7
+%else
+%define cxx_sover 6
+%endif
%if %{without cxx}
%undefine with_go
%endif
%endif
BuildRequires: gmp-devel >= 4.1
+BuildRequires: gmp-c++-devel >= 4.1
BuildRequires: libmpc-devel
BuildRequires: mpfr-devel >= 2.3.0
BuildRequires: ppl-devel
%if %{with qt}
%patch8 -p1
%endif
+%if %{with symvers}
+%patch9 -p0
+%endif
# update if you need it
#%patch10 -p1
%defattr(644,root,root,755)
%doc libstdc++-v3/{ChangeLog,README}
%attr(755,root,root) %{_libdir}/libstdc++.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libstdc++.so.7
+%attr(755,root,root) %ghost %{_libdir}/libstdc++.so.%{cxx_sover}
%if %{with multilib}
%files -n libstdc++-multilib
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir32}/libstdc++.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir32}/libstdc++.so.7
+%attr(755,root,root) %ghost %{_libdir32}/libstdc++.so.%{cxx_sover}
%endif
%if %{with python}
%{py_sitescriptdir}/libstdcxx/*.py[co]
%dir %{py_sitescriptdir}/libstdcxx/v6
%{py_sitescriptdir}/libstdcxx/v6/*.py[co]
-%{_datadir}/gdb/auto-load/usr/lib*/libstdc++.so.7.0.0-gdb.py
+%{_datadir}/gdb/auto-load/usr/lib*/libstdc++.so.%{cxx_sover}.*.*-gdb.py
%endif
%files -n libstdc++-devel