[mythtv-commits] Ticket #11012: mythtv-0.25.2_p20120716 - configure sets incorrect CFLAGS
MythTV
noreply at mythtv.org
Thu Aug 16 16:48:44 UTC 2012
#11012: mythtv-0.25.2_p20120716 - configure sets incorrect CFLAGS
--------------------------------+--------------------------------------
Reporter: klamp <klampiar@…> | Type: Bug Report - General
Status: new | Priority: minor
Milestone: unknown | Component: MythTV - General
Version: Unspecified | Severity: medium
Keywords: CFLAGS | Ticket locked: 0
--------------------------------+--------------------------------------
This is basically copy of bug reported at
https://bugs.gentoo.org/show_bug.cgi?id=431618.
---------------------------------------------------------------------
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.
---------------------------------------------------------------------
Doug Goldstein:
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.
---------------------------------------------------------------------
I have to second Doug Goldstein here, I dont like how you mess with CFLAGS
either. Can you please just follow behavior of majority of software and
honor user set CFLAGS?
--
Ticket URL: <http://code.mythtv.org/trac/ticket/11012>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list