Move MinGW special casing for shared lib creation to configure.
[ffmpeg.git] / common.mak
index 41cac95ca1b85bf36600a524e9871065593d284f..2748e5ed466b372caf2010e68cc4cf2bb5afe119 100644 (file)
@@ -22,9 +22,7 @@ $(SLIBNAME): $(SLIBNAME_WITH_MAJOR)
 
 $(SLIBNAME_WITH_MAJOR): $(SHARED_OBJS)
        $(CC) $(SHFLAGS) $(LDFLAGS) -o $@ $^ $(EXTRALIBS) $(EXTRAOBJS)
-ifeq ($(CONFIG_MINGW),yes)
-       -lib /machine:i386 /def:$(@:.dll=.def)
-endif
+       $(SLIB_EXTRA_CMD)
 
 %.o: %.c
        $(CC) $(CFLAGS) $(LIBOBJFLAGS) -c -o $@ $<