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

Víctor Paesa wzrlpy
Fri Jul 14 13:58:29 CEST 2006


Hi,

>>> --- ffmpeg-old/vhook/Makefile	2006-07-12 17:55:48.000000000 +0200
>>> +++ ffmpeg/vhook/Makefile	2006-07-13 18:07:12.968750000 +0200
>>> @@ -5,6 +5,13 @@
>>>  CFLAGS=-fPIC $(SHCFLAGS) -I.. -I$(SRC_PATH) -I$(SRC_PATH)/libavformat
>>> \
>>>         -I$(SRC_PATH)/libavcodec -I$(SRC_PATH)/libavutil
>>> -DHAVE_AV_CONFIG_H
>>>
>>> +ifeq ($(TARGET_OS),CYGWIN)
>>> +    EXTRALIBS := -Wl,--no-whole-archive \
>>> +                 -L../libavformat -lavformat$(BUILDSUF) \
>>> +                 -L../libavcodec  -lavcodec$(BUILDSUF)  \
>>> +                 -L../libavutil   -lavutil$(BUILDSUF) $(EXTRALIBS)
>>> +endif
>>> +
>>>  #FIXME: This needs to be in configure/config.mak
>>>  ifeq ($(CONFIG_DARWIN),yes)
>>>  	SHFLAGS = -dynamiclib -Wl,-single_module -flat_namespace \
>>
>> This is hackish, then again, we already have this other FIXME for Darwin
>> there.  The vhook build needs to be overhauled, but this is not
>> necessarily for you to solve..
>
> I'd tend to agree there.
>
Uff, too subtle English for me, will you take care of de-hackering this or
not?


>First off, please split your patch in two parts: one for the vhook issue
>and one for the shared lib support under Cygwin.
OK


>> --- ffmpeg-old/configure        2006-07-12 17:55:48.000000000 +0200
>> +++ ffmpeg/configure        2006-07-13 20:08:25.093750000 +0200
>> @@ -328,6 +328,7 @@
>>  logfile="config.err"
>>  prefix="/usr/local"
>>  libdir=""
>> +shlibdir='$(libdir)'
>
>Why not simply $libdir?
>
OK

I will prepare the two patches.

Regards,
V?ctor






More information about the ffmpeg-devel mailing list