From aed33295ece649a1547ea01204304a102d98c809 Mon Sep 17 00:00:00 2001 From: Bradley Sepos Date: Thu, 7 Jul 2016 14:18:42 -0400 Subject: contrib: Threading fixes in pthreads-w32 and libav. --- contrib/ffmpeg/module.defs | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'contrib/ffmpeg') 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)) -- cgit v1.2.3