[vlc-commits] contrib: aom: make sur we use pthreads-win32 on Windows
Steve Lhomme
git at videolan.org
Wed May 16 15:53:25 CEST 2018
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Wed May 16 15:30:11 2018 +0200| [b7bbf72878edfd230bd17d799a198c9bed395058] | committer: Steve Lhomme
contrib: aom: make sur we use pthreads-win32 on Windows
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b7bbf72878edfd230bd17d799a198c9bed395058
---
contrib/src/aom/aom-pthreads-win32.patch | 15 +++++++++++++++
contrib/src/aom/rules.mak | 1 +
2 files changed, 16 insertions(+)
diff --git a/contrib/src/aom/aom-pthreads-win32.patch b/contrib/src/aom/aom-pthreads-win32.patch
new file mode 100644
index 0000000000..664643befa
--- /dev/null
+++ b/contrib/src/aom/aom-pthreads-win32.patch
@@ -0,0 +1,15 @@
+--- aom/build/cmake/pkg_config.cmake 2018-05-16 15:23:45.271012500 +0200
++++ aom/build/cmake/pkg_config.cmake.pthreads-w32 2018-05-16 15:22:46.304363700 +0200
+@@ -50,7 +50,11 @@ file(APPEND "${pkgconfig_file}" "Require
+ file(APPEND "${pkgconfig_file}" "Conflicts:\n")
+ file(APPEND "${pkgconfig_file}" "Libs: -L\${prefix}/lib -l${pkg_name} -lm\n")
+ if (CONFIG_MULTITHREAD AND HAVE_PTHREAD_H)
+- file(APPEND "${pkgconfig_file}" "Libs.private: -lm -lpthread\n")
++ if(WIN32)
++ file(APPEND "${pkgconfig_file}" "Libs.private: -lm -lpthreadGC2\n")
++ else ()
++ file(APPEND "${pkgconfig_file}" "Libs.private: -lm -lpthread\n")
++ endif ()
+ else ()
+ file(APPEND "${pkgconfig_file}" "Libs.private: -lm\n")
+ endif ()
diff --git a/contrib/src/aom/rules.mak b/contrib/src/aom/rules.mak
index 4f6c8fb499..1ee5870505 100644
--- a/contrib/src/aom/rules.mak
+++ b/contrib/src/aom/rules.mak
@@ -19,6 +19,7 @@ aom: aom-$(AOM_VERSION).tar.gz .sum-aom
rm -Rf $@-$(AOM_VERSION) $@
mkdir -p $@-$(AOM_VERSION)
tar xvzf "$<" -C $@-$(AOM_VERSION)
+ $(APPLY) $(SRC)/aom/aom-pthreads-win32.patch
$(MOVE)
DEPS_aom =
More information about the vlc-commits
mailing list