summaryrefslogtreecommitdiffstats
path: root/contrib/ffmpeg
diff options
context:
space:
mode:
authorBradley Sepos <[email protected]>2016-07-07 14:18:42 -0400
committerBradley Sepos <[email protected]>2016-07-07 14:18:42 -0400
commitaed33295ece649a1547ea01204304a102d98c809 (patch)
treed83e8ac556a865f7807abd241fe7720d59884d74 /contrib/ffmpeg
parent7745f42a867cbc13d8df861a4629d796a9d7af32 (diff)
contrib: Threading fixes in pthreads-w32 and libav.
Diffstat (limited to 'contrib/ffmpeg')
-rw-r--r--contrib/ffmpeg/module.defs10
1 files changed, 4 insertions, 6 deletions
diff --git a/contrib/ffmpeg/module.defs b/contrib/ffmpeg/module.defs
index 6b0a73c51..a75b49d4f 100644
--- a/contrib/ffmpeg/module.defs
+++ b/contrib/ffmpeg/module.defs
@@ -47,6 +47,7 @@ FFMPEG.CONFIGURE.extra = \
--disable-decoder=libvpx_vp9 \
--enable-zlib \
--enable-bzlib \
+ --enable-pthreads \
--cc="$(FFMPEG.GCC.gcc)" \
--extra-ldflags="$(call fn.ARGS,FFMPEG.GCC,*archs *sysroot *minver ?extra) -L$(call fn.ABSOLUTE,$(CONTRIB.build/)lib)"
@@ -67,14 +68,13 @@ FFMPEG.CONFIGURE.extra += \
## check against tuple: B-SYSTEM where B is { 0 | 1 } for cross-compiling flag
ifeq (0-cygwin,$(BUILD.cross)-$(BUILD.system))
- FFMPEG.CONFIGURE.extra += --enable-pthreads --enable-memalign-hack
+ FFMPEG.CONFIGURE.extra += --enable-memalign-hack
FFMPEG.GCC.args.extra += -fno-common
else ifeq (darwin,$(BUILD.system))
## section for darwin-archs
- FFMPEG.CONFIGURE.extra += --enable-pthreads --enable-cross-compile --arch=$(BUILD.machine) --target-os=darwin
+ FFMPEG.CONFIGURE.extra += --enable-cross-compile --arch=$(BUILD.machine) --target-os=darwin
else ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))
FFMPEG.CONFIGURE.extra += \
- --enable-w32threads \
--enable-memalign-hack \
--enable-dxva2 \
--enable-hwaccel=h264_dxva2 \
@@ -83,11 +83,9 @@ else ifeq (1-mingw,$(BUILD.cross)-$(BUILD.system))
--enable-hwaccel=vc1_dxva2 \
--enable-hwaccel=wmv3_dxva2 \
--target-os=mingw32 \
- --arch=i386 \
+ --arch=$(BUILD.machine) \
--enable-cross-compile --cross-prefix=$(BUILD.cross.prefix)
FFMPEG.GCC.args.extra += -fno-common
-else
- FFMPEG.CONFIGURE.extra += --enable-pthreads
endif
ifneq (none,$(FFMPEG.GCC.g))