[Ffmpeg-devel] [PATCH] Cygwin vhook, always static avformat

Måns Rullgård mru
Mon Jul 31 01:36:19 CEST 2006


Diego Biurrun <diego at biurrun.de> writes:

> This thread was dormant for a short while, let's revive it..
>
> On Sun, Jul 16, 2006 at 02:00:20PM +0100, M?ns Rullg?rd wrote:
>> V?ctor Paesa <wzrlpy at arsystel.com> writes:
>> 
>> > The next attempt on the vhook, shared lib Cygwin patches, attached.
>> >
>> > --- ffmpeg-5754-old/configure	2006-07-15 23:00:24.468750000 +0200
>> > +++ ffmpeg/configure	2006-07-16 00:09:57.265625000 +0200
>> > @@ -587,7 +587,11 @@
>> >  v4l2="no"
>> >  audio_oss="yes"
>> >  dv1394="no"
>> > -vhook="no"
>> > +VHOOKFLAGS="-shared"
>> > +VHOOKLIBS='-Wl,--no-whole-archive \
>> > +           -L../libavformat -lavformat$(BUILDSUF) \
>> > +           -L../libavcodec  -lavcodec$(BUILDSUF)  \
>> > +           -L../libavutil   -lavutil$(BUILDSUF) $(EXTRALIBS)'
>> 
>> Why is this needed on cygwin but not elsewhere?  I guess it has
>> something to do with now dynamic symbols are resolved.  Wouldn't be
>> just as well to always link the vhook libs against lav[cfu]?  Doing so
>> would allow us to get rid of the -rdynamic stuff which is problematic
>> anyway (as in syntax and semantics varying wildly between platforms).
>
> Sounds like a good idea..

On second thoughts, this might not be such a good idea after all.  If
static libs are used, linking them into the vhook modules is not at
all good.

-- 
M?ns Rullg?rd
mru at inprovide.com




More information about the ffmpeg-devel mailing list