Move MinGW LDFLAGS setting to configure.
authorDiego Biurrun <diego@biurrun.de>
Mon, 10 Jul 2006 00:19:38 +0000 (00:19 +0000)
committerDiego Biurrun <diego@biurrun.de>
Mon, 10 Jul 2006 00:19:38 +0000 (00:19 +0000)
Originally committed as revision 5699 to svn://svn.ffmpeg.org/ffmpeg/trunk

common.mak
configure

index be7d476eb3fa9dc933e4ab1b616cb765983fcf43..cdafa60ae859155db70c5373c7ac98b8ca28ccaa 100644 (file)
@@ -5,11 +5,6 @@
 SRC_DIR = $(SRC_PATH)/lib$(NAME)
 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
index 2dd5bf976c0142efd1b184da1774c5d6c796d1d6..00752504366efb6239636d170be85f0310664e54 100755 (executable)
--- a/configure
+++ b/configure
@@ -1166,6 +1166,7 @@ EOF
     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"