[FFmpeg-trac] #2009(build system:new): Bogus library dependencies (e.g. on SDL)
FFmpeg
trac at avcodec.org
Mon Dec 10 20:09:47 CET 2012
#2009: Bogus library dependencies (e.g. on SDL)
-------------------------------------+-------------------------------------
Reporter: divVerent | Type: defect
Status: new | Priority: normal
Component: build | Version:
system | unspecified
Keywords: pkg-config | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug:
pkg-config files contain unneeded dependencies (e.g. libavcodec.pc
contains -lSDL)
How to reproduce:
{{{
% grep SDL /usr/lib/pkgconfig/libav*
/usr/lib/pkgconfig/libavcodec.pc:Libs: -L${libdir} -lavcodec -ldl -lva
-lXfixes -lXext -lX11 -ljack -lasound -lSDL -lpthread -lx264 -lvorbisenc
-lvorbis -logg -ltheoraenc -ltheoradec -logg -lmp3lame -lfdk-aac -lfaac
-lass -lm -pthread -lbz2 -lz -lrt
/usr/lib/pkgconfig/libavdevice.pc:Libs: -L${libdir} -lavdevice -ldl -lva
-lXfixes -lXext -lX11 -ljack -lasound -lSDL -lpthread -lx264 -lvorbisenc
-lvorbis -logg -ltheoraenc -ltheoradec -logg -lmp3lame -lfdk-aac -lfaac
-lass -lm -pthread -lbz2 -lz -lrt
/usr/lib/pkgconfig/libavfilter.pc:Libs: -L${libdir} -lavfilter -ldl -lva
-lXfixes -lXext -lX11 -ljack -lasound -lSDL -lpthread -lx264 -lvorbisenc
-lvorbis -logg -ltheoraenc -ltheoradec -logg -lmp3lame -lfdk-aac -lfaac
-lass -lm -pthread -lbz2 -lz -lrt
/usr/lib/pkgconfig/libavformat.pc:Libs: -L${libdir} -lavformat -ldl -lva
-lXfixes -lXext -lX11 -ljack -lasound -lSDL -lpthread -lx264 -lvorbisenc
-lvorbis -logg -ltheoraenc -ltheoradec -logg -lmp3lame -lfdk-aac -lfaac
-lass -lm -pthread -lbz2 -lz -lrt
% nm -A /usr/lib/libavcodec.a | grep SDL
%
}}}
Issue is that $extralibs is generally used in the configure script for
multiple modules, despite them needing different things. It causes issues
for programs linking to both libavcodec/libavformat and SDL2.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/2009>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list