Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 431618 - media-tv/mythtv-0.25.2_p20120716 - configure sets incorrect CFLAGS
Summary: media-tv/mythtv-0.25.2_p20120716 - configure sets incorrect CFLAGS
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Doug Goldstein
Depends on:
Reported: 2012-08-16 10:11 UTC by klamp
Modified: 2012-08-16 21:52 UTC (History)
1 user (show)

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

emerge --info (file_431618.txt,6.00 KB, text/plain)
2012-08-16 10:11 UTC, klamp

Note You need to log in before you can comment on or make changes to this bug.
Description klamp 2012-08-16 10:11:09 UTC
Created attachment 321474 [details]
emerge --info

configure apparently constructs incorrect CFLAGS to pass to gcc.

for given system CFLAGS (from emerge --info):
CFLAGS="-march=native -O2 -pipe -ggdb"
CXXFLAGS="-march=native -O2 -pipe -ggdb"

configure is called with (config.log):
./configure --cc=i686-pc-linux-gnu-gcc --cxx=i686-pc-linux-gnu-g++ --ar=i686-pc-linux-gnu-ar --extra-cflags=-march=native -O2 -pipe -ggdb --extra-cxxflags=-march=native -O2 -pipe -ggdb --extra-ldflags=-Wl,-O1 -Wl,--as-needed --prefix=/usr --libdir=/usr/lib --libdir-name=lib --mandir=/usr/share/man --enable-audio-alsa --disable-audio-jack --disable-audio-pulseoutput --disable-altivec --disable-dvb --disable-firewire --disable-lirc --enable-libxvid --dvb-path=/usr/include --enable-xrandr --enable-xv --enable-x11 --enable-nonfree --disable-libcec --disable-libdns-sd --enable-libtheora --enable-libvorbis --enable-libmp3lame --enable-libx264 --enable-libvpx --enable-libfaac --with-bindings=perl,python --python=python2.7 --compile-type=release --enable-debug --disable-stripping --enable-vdpau --enable-vaapi --disable-joystick-menu --enable-symbol-visibility --enable-pic --cpu=host --disable-distcc --disable-ccache

and produces (config.mak):
CFLAGS=-march=native -O2 -pipe -ggdb -march=native -O2 -pipe -ggdb -march=pentium4 -std=c99 -fomit-frame-pointer -fPIC -pthread -g -Wall -Wno-parentheses -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize

which results in gcc call:
i686-pc-linux-gnu-gcc -c -pipe -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DPIC -march=native -O2 -pipe -ggdb -march=native -O2 -pipe -ggdb -march=pentium4 -std=c99 -fomit-frame-pointer -fPIC -pthread -g -Wall -Wno-parentheses -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Wno-pointer-sign -Wcast-qual -Wwrite-strings -Wtype-limits -Wundef -Wmissing-prototypes -O3 -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -DMMX -Di386 -D_GNU_SOURCE -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include -I/usr -I/usr/include/libxml2 -o dummy.o dummy.c

While I expect system CFLAGS, or CFLAGS as close to system as possible, to be used
Comment 1 Doug Goldstein gentoo-dev 2012-08-16 15:04:14 UTC
Take it up with upstream. I don't like how they mess with CFLAGS. For the longest time they insisted we block all user CFLAGS and use what they generate.
Comment 2 klamp 2012-08-16 21:52:37 UTC
Upstream response - Won't Fix: