./configure sets wrong arch flags on G3 ppc
On a powerbook G3 ppc computer I need to build without altivec or G4 compilation options, the current gentoo build is set to disable -mtune options and run configure with --disable-altivec if altivec should not be enabled, however some components of vlc still set -maltivec when compiling.
see gentoo bug #158126 : http://bugs.gentoo.org/show_bug.cgi?id=158126
some components build with -maltivec set as follows:
make[4]: Entering directory
/var/tmp/portage/media-video/vlc-0.8.6_p18636/work/vlc-0.8.6_p18636/src' /bin/sh ../libtool --tag=CC --mode=compile powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DSYS_LINUX -I../include
top_builddir=".." ..
/vlc-config --cflags vlc-Wsign-compare -Wall -O3 -mcpu=750 -mtune=powerpc -pipe -pipe -MT libvlc_la-libvlc.lo -MD -MP -MF .deps/libvlc_la-libvlc.T po -c -o libvlc_la-libvlc.lo
test -f 'libvlc.c' || echo './'libvlc.c cd ../modules/demux && make liblive555_builtin.la make[5]: Entering directory
/var/tmp/portage/media-video/vlc-0.8.6_p18636/work/vlc-0.8.6_p18636/modules/demux'
/bin/sh ../../libtool --tag=CXX --mode=compile powerpc-unknown-linux-gnu-g++
-DHAVE_CONFIG_H -I. -I../.. -DSYS_LINUX -I../../include top_buildd ir="../.." ../../vlc-config --cxxflags builtin live555
-Wsign-compare -Wall
-O3 -mcpu=750 -mtune=powerpc -pipe -pipe -MT liblive555_builtin_la-live
555.lo -MD -MP -MF .deps/liblive555_builtin_la-live555.Tpo -c -o
liblive555_builtin_la-live555.lo test -f 'live555.cpp' || echo './'
live555.cpp
mkdir .libs
powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DSYS_LINUX
-I../include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE
-D_REEN
TRANT -D_THREAD_SAFE -D_GNU_SOURCE -DLOCALEDIR="/usr/share/locale"
-DDATA_PATH="/usr/share/vlc" -DPLUGIN_PATH="/usr/lib/vlc" -O2 -D__VLC__ -I.
./src/misc -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/hal
-I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -maltivec -Wsign-compare
-Wall -O3 -m
cpu=750 -mtune=powerpc -pipe -pipe -MT libvlc_la-libvlc.lo -MD -MP -MF
.deps/libvlc_la-libvlc.Tpo -c libvlc.c -fPIC -DPIC -o .libs/libvlc_la-libvlc
.o
configure is being run as follows:
./configure --prefix=/usr --host=powerpc-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc--localstatedir=/var/lib --disable-altivec --enable-sout --disable-httpd --disable-gnutls --disable-v4l --enable-cdda --enable-cddax --enable-libcddb --disable-vcd --disable-vcdx --enable-dvb --enable-pvr --enable-ogg --disable-mkv --enable-flac --enable-vorbis --enable-theora --enable-x11 --enable-xvideo --disable-xinerama --enable-glx --enable-opengl --enable-freetype --disable-fribidi --enable-dvdread --enable-dvdplay --enable-dvdnav --enable-fb --disable-svgalib --disable-glide --disable-aa --disable-caca --disable-oss --enable-esd --disable-arts --enable-alsa --enable-wxwidgets --enable-ncurses --enable-xosd --enable-lirc --enable-mad --enable-a52 --enable-dts --enable-libmpeg2 --enable-ggi --disable-glide --enable-sdl --disable-sdl-image --enable-png --enable-libxml2 --enable-smb --disable-daap --disable-corba --disable-mod --enable-speex --disable-shout --disable-rtsp--disable-realrtsp --disable-loader --enable-skins2 --enable-hal --enable-bonjour --disable-upnp --disable-optimize-memory --disable-notify --disable-jack --disable-mpc --enable-ffmpeg --disable-faad --disable-dv --disable-libvc1 --disable-snapshot --disable-growl --disable-pth --disable-portaudio --disable-x264 --disable-libtar --disable-optimizations --enable-utf8 --enable-libtool --enable-mozilla XPIDL=/usr/lib/mozilla-firefox MOZILLA_CONFIG=/usr/lib/mozilla-firefox/firefox-config WX_CONFIG=/usr/lib/wx/config/gtk2-unicode-release-2.6 --enable-live555 --with-live555-tree=/usr/lib/live --build=powerpc-unknown-linux-gnu
and after configuring, calling vlc-config gives the following: --cflags: -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -DLOCALEDIR="/usr/share/locale" -DDATA_PATH="/usr/share/vlc" -DPLUGIN_PATH="/usr/lib/vlc" -O2 --cxxflags: -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE -DLOCALEDIR="/usr/share/locale" -DDATA_PATH="/usr/share/vlc" -DPLUGIN_PATH="/usr/lib/vlc" -O2
so -maltivec is not being set in the cflags or cxxflags, but still appears in the compilation. (more notes on this on gentoo bug page).
the overall problem is that when I run vlc on a WMV9 stream, either standalone or in a browser, it crashes, which may or may not be caused by the arch flags during build.