You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-11-06 08:29:25 +02:00
On MinGW it is not possible to build shared and static libraries at once.
Add means to disable building the static libraries and fix a few issues with the MinGW build. All the hard work done by Alexander Strasser, minor changes by myself. Originally committed as revision 4909 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -6,11 +6,11 @@ include ../config.mak
|
||||
VPATH=$(SRC_PATH)/libavutil
|
||||
|
||||
# NOTE: -I.. is needed to include config.h
|
||||
CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
|
||||
CFLAGS=$(OPTFLAGS) -DHAVE_AV_CONFIG_H -DBUILD_AVUTIL -I.. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE
|
||||
|
||||
#FIXME: This should be in configure/config.mak
|
||||
ifeq ($(CONFIG_WIN32),yes)
|
||||
LDFLAGS=-Wl,--output-def,$(@:.dll=.def)
|
||||
LDFLAGS=-Wl,--output-def,$(@:.dll=.def),--out-implib,lib$(SLIBNAME:$(SLIBSUF)=.dll.a)
|
||||
endif
|
||||
|
||||
OBJS= mathematics.o \
|
||||
@@ -53,7 +53,8 @@ depend: $(SRCS)
|
||||
dep: depend
|
||||
|
||||
clean:
|
||||
rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll
|
||||
rm -f *.o *.d *~ *.a *.lib *.so *.dylib *.dll \
|
||||
*.lib *.def *.dll.a *.exp
|
||||
|
||||
distclean: clean
|
||||
rm -f .depend
|
||||
|
||||
Reference in New Issue
Block a user