Index: python-2.3.4.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.3.4.ebuild,v retrieving revision 1.8 diff -u -b -B -w -p -r1.8 python-2.3.4.ebuild --- python-2.3.4.ebuild 15 Aug 2004 05:59:53 -0000 1.8 +++ python-2.3.4.ebuild 17 Aug 2004 11:18:27 -0000 @@ -18,7 +18,7 @@ DESCRIPTION="A really great language" SRC_URI="http://www.python.org/ftp/python/${PV%_*}/Python-${PV}.tar.bz2" HOMEPAGE="http://www.python.org" -IUSE="ncurses gdbm ssl readline tcltk berkdb bootstrap ipv6 build ucs2 doc X" +IUSE="ncurses gdbm ssl readline tcltk berkdb bootstrap ipv6 build ucs2 doc X hardened" LICENSE="PSF-2.2" SLOT="2.3" @@ -92,6 +92,10 @@ src_compile() { [ "${ARCH}" = "alpha" ] && append-flags -fPIC [ "${ARCH}" = "amd64" ] && append-flags -fPIC + if is-flag -O3 ; then + is-flag -fstack-protector-all && replace-flags -O3 -O2 + use hardened && replace-flags -O3 -O2 + fi export OPT="${CFLAGS}" local myconf