Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30342 - mplayer applies undesired optimization flags when compiling (-mcpu and -04)
Summary: mplayer applies undesired optimization flags when compiling (-mcpu and -04)
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-04 12:46 UTC by Adam
Modified: 2003-10-08 16:20 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adam 2003-10-04 12:46:49 UTC
I searched, and while bug number 28853 is close, I don't think its the same one.
 When I emerge mplayer I can see that its applying my optimizations, plus other
ones, that don't apply to me.  I have an athlon, but not an athlon-tbird, so why
should -mcpu=athlon-bird be done?  Also, I spotted -O4...which I thought was a
'fictional' 'O' setting, as they didn't get past three.  I think packages like
this break the spirit of Gentoo.  I have no experience in doing this kind of
thing, but perhaps something should be done to filter out some of these
automatic CFLAGS...

Reproducible: Always
Steps to Reproduce:
1.  Emerge mplayer



Portage 2.0.49-r3 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.6.0-test6-mm2)
=================================================================
System uname: 2.6.0-test6-mm2 i686 AMD Athlon(tm) Processor
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon -O2 -funroll-loops -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /var/qmail/control /usr/kde/2/share/config
/usr/kde/3/share/config /usr/X11R6/lib/X11/xkb /usr/kde/3.1/share/config
/usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/
/usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=athlon -O2 -funroll-loops -pipe"
DISTDIR="/var/cache/distfiles"
FEATURES="autoaddcvs sandbox userpriv usersandbox ccache"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx mpeg
ncurses pdflib png spell truetype xml2 xmms xv alsa gdbm berkdb slang readline
arts tetex aalib nas bonobo svga ggi tcltk guile ruby X sdl gpm tcpd pam libwww
ssl perl python esd imlib oggvorbis gnome gtk qt kde motif opengl mozilla ldap
cdr 3dnow acpi acpi4linux apache2 artswrappersuid cjk cscope dga doc ethereal
fbcon gstreamer gtk2 gtkhtml i8x0 jikes maildir mbox md5sum mng moznocompose
moznoirc moznomail nowin offensive openal pic ppds S3TC samba sis src sse
threads usb X509 xgetdefault xine xml xosd -oss -apm -java -nls -quicktime -zlib"
Comment 1 Martin Schlemmer (RETIRED) gentoo-dev 2003-10-08 16:20:49 UTC
No, the ebuild unset all CFLAGS, and compile it as mplayer wants, else they
do not support it.  If you have issues with this, edit the ebuild, or take
it to mplayer-users - I should however warn that it is part of their support
policy, and I cannot see it changing soon.