[Ffmpeg-devel] unable to build shared ffmpeg on x86_64 with swscale

Pavlov Konstantin thresh
Tue Oct 3 08:45:18 CEST 2006

On Tuesday 03 October 2006 10:43, Pavlov Konstantin wrote:

> /usr/bin/ld: swscale.o: relocation R_X86_64_32S against `a local symbol'
> can not be used when making a shared object; recompile with -fPIC

Oh yes, and swscale.o is built with -fPIC -dPIC:

gcc -I.. -I/usr/src/RPM/BUILD/ffmpeg-0.5.0 -I/usr/src/RPM/BUILD/ffmpeg-0.5.0/libavutil -pipe -Wall -O3  -fomit-frame-pointer -ffast-math -finline-functions -frename-registers -DRUNTIME_CPUDETECT -DARCH_X86_64 -pthread -Wdeclaration-after-statement -Wall -Wno-switch -Wdisabled-optimization -Wpointer-arith -Wredundant-decls -Winline -O3 -DHAVE_AV_CONFIG_H -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -fPIC -DPIC -c -o 
swscale.o swscale.c

Pavlov Konstantin,
CPMS Network,
jid: thresh at altlinux.org

More information about the ffmpeg-devel mailing list