[FFmpeg-devel] [Spam] Re: Fix mingw name of .lib files
Måns Rullgård
mans
Sat Mar 8 22:53:34 CET 2008
Gonzalo Garramu?o <ggarra at advancedsl.com.ar> writes:
> Ramiro Polla wrote:
>> Ramiro Polla wrote:
>> [...]
>>> Patches to fix MinGW installation are welcome. They must be
>>> *clean*, though.
>> Clean meaning no ifdefs, no bloat in the code and not messing up
>> Unix install.
>
> Understood. The patch is at the beginning of the thread, but it is
> for an old head.
>
> Attached is the one for current head. If you find any problems with
> it, let me know.
>
> This patch achieves only the first part of my last email for mingw32
> native. I agree with your statement in the 3rd reply to this
> thread. More comprehensive patches would indeed need to be more
> disruptive to the current build system.
>
> diff --git a/configure b/configure
> index 21da648..830d505 100755
> --- a/configure
> +++ b/configure
> @@ -1223,8 +1223,8 @@ case $targetos in
> SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME)-$(LIBVERSION)$(SLIBSUF)'
> SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)'
> SLIB_EXTRA_CMD='-lib /machine:i386 /def:$(@:$(SLIBSUF)=.def)'
> - SLIB_INSTALL_EXTRA_CMD='-install -m 644 $(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib) "$(SHLIBDIR)/$(SLIBNAME:$(SLIBSUF)=.lib)"'
> - SLIB_UNINSTALL_EXTRA_CMD='rm -f "$(SHLIBDIR)/$(SLIBNAME:$(SLIBSUF)=.lib)"'
> + SLIB_INSTALL_EXTRA_CMD='-install -m 644 $(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib) "$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib)"'
> + SLIB_UNINSTALL_EXTRA_CMD='rm -f "$(SHLIBDIR)/$(SLIBNAME_WITH_MAJOR:$(SLIBSUF)=.lib)"'
> SHFLAGS='-shared -Wl,--output-def,$(@:$(SLIBSUF)=.def) -Wl,--enable-runtime-pseudo-reloc -Wl,--enable-auto-image-base'
> ;;
> cygwin*)
This removes the unversioned .lib file which everybody else wants to
use. That is not acceptable.
--
M?ns Rullg?rd
mans at mansr.com
More information about the ffmpeg-devel
mailing list