Index: mplayer-1.0_rc1-r2.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/media-video/mplayer/mplayer-1.0_rc1-r2.ebuild,v retrieving revision 1.1 diff -u -r1.1 mplayer-1.0_rc1-r2.ebuild --- mplayer-1.0_rc1-r2.ebuild 30 Jan 2007 15:26:30 -0000 1.1 +++ mplayer-1.0_rc1-r2.ebuild 2 Feb 2007 16:35:32 -0000 @@ -425,13 +425,17 @@ # ugly optimizations cause MPlayer to cry on x86 systems! if use x86 ; then replace-flags -O* -O2 - filter-flags -fPIC -fPIE + filter-flags -fPIC use debug || append-flags -fomit-frame-pointer fi append-flags -D__STDC_LIMIT_MACROS else unset CFLAGS CXXFLAGS fi + # Don't do PIE - too much assembler is non-PIC only (bug #133586) + # Affects at least x86 and amd64 arches. Do it always, as hardened uses + # CFLAGS with filter-flags to switch off its default-PIE behaviour. + filter-flags -fPIE CFLAGS="$CFLAGS" ./configure \ "--cc=$(tc-getCC)" "--host-cc=$(tc-getBUILD_CC)" \