--- crypto++-5.2.ebuild.orig 2004-09-21 01:18:51.132344761 -0400 +++ crypto++-5.2.ebuild 2004-09-21 01:20:11.946680292 -0400 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/crypto++/crypto++-5.2.ebuild,v 1.3 2004/08/03 01:54:15 vapier Exp $ -inherit flag-o-matic eutils +inherit flag-o-matic eutils gcc DESCRIPTION="Crypto++ is a C++ class library of cryptographic schemes" HOMEPAGE="http://cryptopp.com" @@ -19,6 +19,12 @@ # -O3 causes segfaults replace-flags -O3 -O2 + #GCC 3.4 still has sse2 problems: bug #64646 + if [ "`gcc-major-version`" -ge "3" -a "`gcc-minor-version`" -ge "4" ] + then + replace-flags "-march=pentium4" "-mtune=pentium4" + fi + emake -f GNUmakefile CXXFLAGS="${CXXFLAGS}" || die if ! ./cryptest.exe v then