diff -upr ffmpeg-old/Makefile ffmpeg/Makefile --- ffmpeg-old/Makefile 2006-03-31 17:47:29.000000000 +0200 +++ ffmpeg/Makefile 2006-04-29 02:25:32.046875000 +0200 @@ -38,6 +38,11 @@ endif ifeq ($(BUILD_SHARED),yes) DEP_LIBS=libavcodec/$(SLIBPREF)avcodec$(SLIBSUF) libavformat/$(SLIBPREF)avformat$(SLIBSUF) +# Cygwin gcc/ld compiles shared libraries, but fails while autoimporting the static variables +# hence let's force avformat library to be always static + ifeq ($(TARGET_OS),CYGWIN) + DEP_LIBS=libavcodec/$(SLIBPREF)avcodec$(SLIBSUF) libavformat/$(LIBPREF)avformat$(LIBSUF) + endif else DEP_LIBS=libavcodec/$(LIBPREF)avcodec$(LIBSUF) libavformat/$(LIBPREF)avformat$(LIBSUF) endif diff -upr ffmpeg-old/libavformat/Makefile ffmpeg/libavformat/Makefile --- ffmpeg-old/libavformat/Makefile 2006-04-17 19:52:53.000000000 +0200 +++ ffmpeg/libavformat/Makefile 2006-04-29 02:25:32.062500000 +0200 @@ -97,4 +97,15 @@ LIBVERSION=$(LAVFVERSION) LIBMAJOR=$(LAVFMAJOR) endif +#FIXME: This needs to be in configure/config.mak +# Cygwin gcc/ld compiles shared libraries, but fails while autoimporting the static variables +# hence let's force avformat library to be always static +ifeq ($(TARGET_OS),CYGWIN) + BUILD_SHARED=no + BUILD_STATIC=yes + LIB=$(LIBPREF)$(NAME)$(LIBSUF) + SLIBNAME= + $(warning Library avformat will be static and not shared) +endif + include $(SRC_PATH)/common.mak