[Ffmpeg-devel] [PATCH] build with '--enable-gprof'
Dmitry Antipov
dmantipov
Mon Dec 11 13:05:58 CET 2006
Michael Niedermayer wrote:
>> But ffmpeg compiles without '-fPIC' or '-fpic' even if '--enable-shared', and only
>> vhook compiles with PIC option(s). Is this a bug :-) ?
>
> i dont think this is true for x86 on all OSs
$ svn update
Fetching external item into 'libswscale'
External at revision 21590.
At revision 7278.
$ ./configure --prefix=/usr --enable-x264 --enable-gpl --enable-mp3lame --enable-libogg --enable-vorbis --enable-xvid --enable-shared
install prefix /usr
source path /home/dima/tmp/MPlayerStuff/ffmpeg
C compiler gcc
make make
ARCH x86_32 (generic)
big-endian no
MMX enabled yes
CMOV enabled no
CMOV is fast no
gprof enabled no
zlib enabled yes
libgsm enabled no
mp3lame enabled yes
libnut enabled no
libogg enabled yes
Vorbis enabled yes
FAAD enabled no
faadbin enabled no
FAAC enabled no
XviD enabled yes
x264 enabled yes
a52 support no
a52 dlopened no
DTS support no
pp support no
Software Scaler enabled no
AVISynth enabled no
debug symbols yes
strip symbols yes
optimize yes
static yes
shared yes
video hooking yes
SDL support yes
Imlib2 support yes
FreeType support yes
Sun medialib support no
pthreads support no
AMR-NB float support no
AMR-NB fixed support no
AMR-WB float support no
AMR-WB IF2 support no
network support yes
IPv6 support yes
.align is power-of-two no
License: GPL
Creating config.mak and config.h...
$ cd libavcodec
$ make
gcc -I"/home/dima/tmp/MPlayerStuff/ffmpeg"/libswscale -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/home/dima/tmp/MPlayerStuff/ffmpeg" -I"/home/dima/tmp/MPlayerStuff/ffmpeg" -I"/home/dima/tmp/MPlayerStuff/ffmpeg"/libavutil -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -O3 -c -o bitstream.o bitstream.c
gcc -I"/home/dima/tmp/MPlayerStuff/ffmpeg"/libswscale -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/home/dima/tmp/MPlayerStuff/ffmpeg" -I"/home/dima/tmp/MPlayerStuff/ffmpeg" -I"/home/dima/tmp/MPlayerStuff/ffmpeg"/libavutil -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -O3 -c -o utils.o utils.c
gcc -I"/home/dima/tmp/MPlayerStuff/ffmpeg"/libswscale -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_ISOC9X_SOURCE -I"/home/dima/tmp/MPlayerStuff/ffmpeg" -I"/home/dima/tmp/MPlayerStuff/ffmpeg" -I"/home/dima/tmp/MPlayerStuff/ffmpeg"/libavutil -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -O3 -c -o allcodecs.o allcodecs.c
[...skipped...]
$ cd ../vhook/
$ make
gcc -I"/home/dima/tmp/MPlayerStuff/ffmpeg" -I"/home/dima/tmp/MPlayerStuff/ffmpeg" -I"/home/dima/tmp/MPlayerStuff/ffmpeg"/libavutil -I"/home/dima/tmp/MPlayerStuff/ffmpeg"/libavcodec -I"/home/dima/tmp/MPlayerStuff/ffmpeg"/libavformat -I"/home/dima/tmp/MPlayerStuff/ffmpeg"/libswscale -fPIC -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -O3 -DHAVE_AV_CONFIG_H `freetype-config --cflags` -c -o null.o null.c
[...skipped...]
$ cd ..
$ grep -i flags config.mak common.mak Makefile | grep -i pic
config.mak:VHOOKCFLAGS=-fPIC -fomit-frame-pointer -g -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -O3
Am I doing wrong something ?
Dmitry
More information about the ffmpeg-devel
mailing list