Don't hardcode .dll in the MinGW section, use $SLIBSUF instead.
authorDiego Biurrun <diego@biurrun.de>
Thu, 3 Aug 2006 16:34:22 +0000 (16:34 +0000)
committerDiego Biurrun <diego@biurrun.de>
Thu, 3 Aug 2006 16:34:22 +0000 (16:34 +0000)
Originally committed as revision 5922 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 30ce3d5..e35561a 100755 (executable)
--- a/configure
+++ b/configure
@@ -878,13 +878,13 @@ EOF
     if test "$mingwce" = "yes"; then
         protocols="no"
     fi
-    FFLDFLAGS='-Wl,--output-def,$(@:.dll=.def),--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a)'
     SLIBPREF=""
     SLIBSUF=".dll"
     EXESUF=".exe"
     SLIBNAME_WITH_VERSION='$(SLIBPREF)$(NAME)-$(LIBVERSION)$(SLIBSUF)'
     SLIBNAME_WITH_MAJOR='$(SLIBPREF)$(NAME)-$(LIBMAJOR)$(SLIBSUF)'
-    SLIB_EXTRA_CMD='-lib /machine:i386 /def:$(@:.dll=.def)'
+    SLIB_EXTRA_CMD="-lib /machine:i386 /def:\$(@:${SLIBSUF}=.def)"
+    FFLDFLAGS="-Wl,--output-def,\$(@:${SLIBSUF}=.def),--out-implib,lib\$(SLIBNAME:\$(SLIBSUF)=.dll.a)"
     if test "$force_prefix" != yes; then PREFIX="$PROGRAMFILES/FFmpeg"; fi
     if test "$force_libdir" != yes; then bindir="$PREFIX"; fi
 fi