--- ffmpeg-0.4.9_p20050226-r4.ebuild.orig 2005-04-22 15:36:48.000000000 +0200 +++ ffmpeg-0.4.9_p20050226-r4.ebuild 2005-04-22 15:36:14.000000000 +0200 @@ -80,7 +80,15 @@ #disable mmx accelerated code if not requirested, or if PIC is required # as the provided asm decidedly isn't PIC. - if ( ! has_pic && use mmx ) || use amd64 ; then + if use amd64 ; then + myconf="${myconf} --enable-mmx" + elif use mmx && has_pic ; then + ewarn "MMX support has to be disabled because you are using PIC" + myconf="${myconf} --disable-mmx" + elif use mmx && ! is-flag -fomit-frame-pointer >/dev/null ; then + ewarn "MMX support has to be disabled because you don't have -fomit-frame-pointer in your CFLAGS" + myconf="${myconf} --disable-mmx" + elif use mmx ; then myconf="${myconf} --enable-mmx" else myconf="${myconf} --disable-mmx"