[Ffmpeg-devel] Win32 Compile Problem

Diego Biurrun diego
Thu May 18 01:45:45 CEST 2006


On Wed, May 17, 2006 at 02:38:50PM -0500, Brian Brice wrote:
> I've been trying to compile ffmpeg with mp3lame support, and so far it
> hasn't worked as planned.  I have lame's headers and libraries installed
> in nonstandard directories, and I thought that I'd be able to specify
> these locations with ffmpeg's configure script.  Unfortunately for the
> Win32 build, the options set with --extra-ldflags are always overwritten.
> 
> Here's a possible patch to fix it(?):

Here's a cleaner one, please let me know if it works for you.

Diego
-------------- next part --------------
--- common.mak	11 May 2006 20:36:00 -0000	1.5
+++ common.mak	17 May 2006 23:44:40 -0000
@@ -5,11 +5,6 @@
 SRC_DIR = $(SRC_PATH)/$(SUBDIR)
 VPATH = $(SRC_DIR)
 
-#FIXME: This should be in configure/config.mak
-ifeq ($(CONFIG_WIN32),yes)
-LDFLAGS = -Wl,--output-def,$(@:.dll=.def),--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a)
-endif
-
 ifeq ($(TARGET_GPROF),yes)
 CFLAGS+=-p
 LDFLAGS+=-p
--- configure	16 May 2006 18:06:28 -0000	1.274
+++ configure	17 May 2006 23:44:40 -0000
@@ -930,6 +930,7 @@
     SLIBPREF=""
     SLIBSUF=".dll"
     EXESUF=".exe"
+    LDFLAGS="-Wl,--output-def,$(@:.dll=.def),--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a) $LDFLAGS"
     if test "$force_prefix" != yes; then prefix="/c/Program Files/FFmpeg"; fi
     if test "$force_libdir" != yes; then bindir="$prefix"; fi
 fi



More information about the ffmpeg-devel mailing list