Skip to content

Commit 064ef84

Browse files
committed
libpthread linker error fix for FFmbc build
1 parent d534a1f commit 064ef84

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

cross_compile_ffmpeg.sh

+5-4
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ ffreleaseversion="1.2"
3535
# Build static (default: true)
3636
ffbuildstatic=true
3737
# Build shared (default: false)
38-
ffbuildshared=false
38+
ffbuildshared=true
3939
# make 32bit build (default: true)
4040
ff32=true
4141
# make 64bit build (default: true)
@@ -48,6 +48,7 @@ ffnonfree=true
4848
ffmpeg=true
4949
# build ffmbc (default: false)
5050
ffmbc=false
51+
ffmbcver="FFmbc-0.7-rc8"
5152
# build a 'light' version of ffmpeg (not all libs, personal prefs) (default: false)
5253
fflight=false
5354
# Ask me questions and show the intro or run only with options configured above! (default: true)
@@ -736,9 +737,9 @@ build_libnut() {
736737
}
737738

738739
build_ffmbc() {
739-
local localdir="FFmbc-0.7-rc7"
740+
local localdir=${ffmbcver}
740741
local ffdate=$(date +%Y%m%d)
741-
download_and_unpack_file http://ffmbc.googlecode.com/files/FFmbc-0.7-rc7.tar.bz2 ${localdir}
742+
download_and_unpack_file http://ffmbc.googlecode.com/files/${ffmbcver}.tar.bz2 ${localdir}
742743
cd ${archdir}/${localdir}
743744
local file2patch="libavcodec/dxva2_internal.h"
744745
if grep -Fxq "#include \"dxva.h\"" $file2patch
@@ -793,7 +794,7 @@ build_ffmbc() {
793794
fi
794795

795796
config_options="--prefix=$ffinstallpath --enable-memalign-hack --arch=$arch --enable-gpl --enable-avisynth --target-os=mingw32 --cross-prefix=$cross_prefix"
796-
config_options="$config_options --pkg-config=pkg-config --enable-runtime-cpudetect --enable-cross-compile"
797+
config_options="$config_options --pkg-config=pkg-config --enable-runtime-cpudetect --enable-cross-compile --disable-w32threads --extra-cflags=-DPTW32_STATIC_LIB"
797798
if ! $ffvanilla
798799
then
799800
config_options="$config_options --enable-zlib --enable-bzlib --enable-libx264 --enable-libmp3lame --enable-libvpx --extra-libs=-lws2_32 --extra-libs=-lpthread"

0 commit comments

Comments
 (0)