-# TODO:
-# doesn't build with libstdc++-4.2.0
+# NOTICE:
+# probably doesn't build with libstdc++ < 4.2.0-200612 (<= 4.1.2 should be OK)
Summary: C++ standard library
Summary(pl): Biblioteki standardowe C++
Name: STLport
Source0: http://dl.sourceforge.net/stlport/%{name}-%{version}.tar.bz2
# Source0-md5: dcf079313e7e0d7870307b74b658bb81
Patch0: %{name}-endianness.patch
+Patch1: %{name}-gcc420_dirty_hack.patch
+Patch2: %{name}-gcc420.patch
URL: http://stlport.sourceforge.net/
BuildRequires: libstdc++-devel >= 5:3.3.2
BuildRequires: sed >= 4.0
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
sed -i -e 's/= -O2$/= %{rpmcflags}/' build/Makefiles/gmake/gcc.mak