[SCM] libav/experimental: Move MinGW section before the combination of FFLDFLAGS and LDFLAGS.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:48:59 UTC 2013


The following commit has been merged in the experimental branch:
commit e67bcdd98554514e24acd96370ad013ef8afeba1
Author: Diego Biurrun <diego at biurrun.de>
Date:   Mon Jul 10 01:12:17 2006 +0000

    Move MinGW section before the combination of FFLDFLAGS and LDFLAGS.
    
    Originally committed as revision 5702 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/configure b/configure
index 36ffcf0..8bd9957 100755
--- a/configure
+++ b/configure
@@ -847,6 +847,35 @@ else
     logfile=/dev/null
 fi
 
+if test "$mingw32" = "yes" -o "$mingwce" = "yes"; then
+    if test "$lshared" = "yes" && test "$lstatic" = "yes" ; then
+        cat <<EOF
+You can only build one library type at once on MinGW.
+Specify --disable-static --enable-shared to only build
+the shared libraries. To build only the static libraries
+you do not need to pass additional options.
+EOF
+        exit 1
+    fi
+    v4l="no"
+    v4l2="no"
+    bktr="no"
+    audio_oss="no"
+    dv1394="no"
+    dc1394="no"
+    ffserver="no"
+    network="no"
+    if test "$mingwce" = "yes"; then
+        protocols="no"
+    fi
+    LDFLAGS=-Wl,--output-def,$(@:.dll=.def),--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a)
+    SLIBPREF=""
+    SLIBSUF=".dll"
+    EXESUF=".exe"
+    if test "$force_prefix" != yes; then prefix="$PROGRAMFILES/FFmpeg"; fi
+    if test "$force_libdir" != yes; then bindir="$prefix"; fi
+fi
+
 # Combine FFLDFLAGS and the LDFLAGS environment variable
 LDFLAGS="$FFLDFLAGS $LDFLAGS"
 
@@ -1145,35 +1174,6 @@ return 0;
 }
 EOF
 
-if test "$mingw32" = "yes" -o "$mingwce" = "yes"; then
-    if test "$lshared" = "yes" && test "$lstatic" = "yes" ; then
-        cat <<EOF
-You can only build one library type at once on MinGW.
-Specify --disable-static --enable-shared to only build
-the shared libraries. To build only the static libraries
-you do not need to pass additional options.
-EOF
-        exit 1
-    fi
-    v4l="no"
-    v4l2="no"
-    bktr="no"
-    audio_oss="no"
-    dv1394="no"
-    dc1394="no"
-    ffserver="no"
-    network="no"
-    if test "$mingwce" = "yes"; then
-        protocols="no"
-    fi
-    LDFLAGS=-Wl,--output-def,$(@:.dll=.def),--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a)
-    SLIBPREF=""
-    SLIBSUF=".dll"
-    EXESUF=".exe"
-    if test "$force_prefix" != yes; then prefix="$PROGRAMFILES/FFmpeg"; fi
-    if test "$force_libdir" != yes; then bindir="$prefix"; fi
-fi
-
 # ---
 # big/little-endian test
 if test "$cross_compile" = "no"; then

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list