[FFmpeg-devel] [PATCH] Install the mingw import libraries, too

Ramiro Polla ramiro.polla
Mon Jul 13 21:18:51 CEST 2009


2009/7/13 M?ns Rullg?rd <mans at mansr.com>:
> Martin Storsj? <martin at martin.st> writes:
>> The attached patch makes the mingw import libraries be installed by a
>> "make install", currently only the microsoft-style import libraries are
>> installed.
>>
>> // Martin
>>
>> diff --git a/configure b/configure
>> index f68067f..f87ce8f 100755
>> --- a/configure
>> +++ b/configure
>> @@ -1711,7 +1711,8 @@ case $target_os in
>> ? ? ? ? ?SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)'
>> ? ? ? ? ?SLIB_EXTRA_CMD='-lib.exe /machine:$(LIBTARGET) /def:$$(@:$(SLIBSUF)=.def) /out:$(SUBDIR)$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib)'
>> ? ? ? ? ?SLIB_INSTALL_EXTRA_CMD='-install -m 644 $(SUBDIR)$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib) "$(SHLIBDIR)/$(SLIBNAME:$(SLIBSUF)=.lib)"; \
>> - ? ? ? ? ? ?install -m 644 $(SUBDIR)$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib) "$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib)"'
>> + ? ? ? ? ? ?install -m 644 $(SUBDIR)$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib) "$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib)"; \
>> + ? ? ? ? ? ?install -m 644 $(SUBDIR)lib$(SLIBNAME:$(SLIBSUF)=.dll.a) "$(LIBDIR)/lib$(SLIBNAME:$(SLIBSUF)=.dll.a)"'
>> ? ? ? ? ?SLIB_UNINSTALL_EXTRA_CMD='rm -f "$(SHLIBDIR)/$(SLIBNAME:$(SLIBSUF)=.lib)"'
>> ? ? ? ? ?SHFLAGS='-shared -Wl,--output-def,$$(@:$(SLIBSUF)=.def) -Wl,--out-implib,$(SUBDIR)lib$(SLIBNAME:$(SLIBSUF)=.dll.a) -Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-image-base'
>> ? ? ? ? ?objformat="win32"
>
> I'm OK with this patch, but I'd like someone who knows what the hell
> those files are to comment on the correctness.

$(LIBDIR) must be created before copying files in there. It is created
later on for pkgconfig. Besides that it's fine.



More information about the ffmpeg-devel mailing list