[MPlayer-dev-eng] configure is duplicating some CFLAGS
Rowan James
rowanj at phere.net
Wed Sep 29 13:18:22 CEST 2010
I'm not yet sure how recent this is - I need to clean up a bit before I can bisect properly if needed; am desperately low on drive space ^_^
This was at least not produced when I submitted the patch for r31910, as clang would have been giving warnings for the ignored duplicate (as shown below) - there's a big chunk of $CFLAGS being duplicated in the CC args.
On Darwin x86_64 w/ gcc 4.2.1 (Apple)
$configure && make
cc -MD -MP -O4 -march=core2 -mtune=core2 -pipe -ffast-math -fomit-frame-pointer -Wundef -Wall -Wno-switch -Wno-parentheses -Wpointer-arith -Wredundant-decls -Wstrict-prototypes -Wmissing-prototypes -Wdisabled-optimization -Wno-pointer-sign -Wdeclaration-after-statement -std=gnu99 -O4 -march=core2 -mtune=core2 -pipe -ffast-math -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -falign-loops=16 -shared-libgcc -mdynamic-no-pic -I. -Iffmpeg -DPIC -I/usr/X11/include -I/usr/X11/include/freetype2 -I/usr/X11/include -c -o command.o command.c
where we see duplicated:
-O4 -march=core2 -mtune=core2 -pipe -ffast-math -fomit-frame-pointer
--
Or with recent SVN clang (same platform)
$ configure --cc=/Users/rowanj/clang/bin/clang && make
/Users/rowanj/clang/bin/clang -MD -MP -D_ISOC99_SOURCE -D_BSD_SOURCE -O2 -march=core2 -pipe -D_ISOC99_SOURCE -D_BSD_SOURCE -O2 -march=core2 -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -Ilibdvdread4 -mdynamic-no-pic -I. -Iffmpeg -DPIC -I/usr/X11/include -I/usr/X11/include/freetype2 -I/usr/X11/include -c -o libmpdemux/ebml.o libmpdemux/ebml.c
clang: warning: argument unused during compilation: '-O2'
clang: warning: argument unused during compilation: '-march=core2'
we see duplicated:
-D_ISOC99_SOURCE -D_BSD_SOURCE -O2 -march=core2 -pipe
More information about the MPlayer-dev-eng
mailing list