Commit b7bbf728 authored by Steve Lhomme's avatar Steve Lhomme

contrib: aom: make sur we use pthreads-win32 on Windows

parent 2916292e
--- 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 ()
......@@ -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 =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment