[FFmpeg-cvslog] configure: fix lib.exe check

Hendrik Leppkes git at videolan.org
Sun Aug 5 10:24:45 CEST 2012


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Sun Aug  5 10:23:50 2012 +0200| [2db097ca76cee7c046e84b57e8ae19f60b716e56] | committer: Carl Eugen Hoyos

configure: fix lib.exe check

Running lib.exe without parameters will always result in an error,
and failing the check.
Using the -list paramter results in a success if lib.exe is present.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2db097ca76cee7c046e84b57e8ae19f60b716e56
---

 configure |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index dbc2015..befa107 100755
--- a/configure
+++ b/configure
@@ -2888,7 +2888,7 @@ case $target_os in
         SLIBNAME_WITH_VERSION='$(SLIBPREF)$(FULLNAME)-$(LIBVERSION)$(SLIBSUF)'
         SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(FULLNAME)-$(LIBMAJOR)$(SLIBSUF)'
         dlltool="${cross_prefix}dlltool"
-        if check_cmd lib.exe; then
+        if check_cmd lib.exe -list; then
             SLIB_EXTRA_CMD='-lib.exe /machine:$(LIBTARGET) /def:$$(@:$(SLIBSUF)=.def) /out:$(SUBDIR)$(SLIBNAME:$(SLIBSUF)=.lib)'
             if enabled x86_64; then
                 LIBTARGET=x64



More information about the ffmpeg-cvslog mailing list