[vlc-commits] contrib: aom: fix lib pthread linkage
Victorien Le Couviour--Tuffet
git at videolan.org
Tue Oct 23 14:53:52 CEST 2018
vlc | branch: master | Victorien Le Couviour--Tuffet <victorien.lecouviour.tuffet at gmail.com> | Tue Sep 18 14:42:07 2018 +0200| [65be347f2fc40f08037bbdcc6726aea21e01abf7] | committer: Thomas Guillem
contrib: aom: fix lib pthread linkage
Fixes android NDK 17 build
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=65be347f2fc40f08037bbdcc6726aea21e01abf7
---
contrib/src/aom/aom-android-pthreads.patch | 19 +++++++++++++++++++
contrib/src/aom/rules.mak | 3 +++
2 files changed, 22 insertions(+)
diff --git a/contrib/src/aom/aom-android-pthreads.patch b/contrib/src/aom/aom-android-pthreads.patch
new file mode 100644
index 0000000000..8b414772e6
--- /dev/null
+++ b/contrib/src/aom/aom-android-pthreads.patch
@@ -0,0 +1,19 @@
+diff --git a/build/cmake/pkg_config.cmake b/build/cmake/pkg_config.cmake
+index 64e2021..1cab2a3 100644
+--- a/build/cmake/pkg_config.cmake
++++ b/build/cmake/pkg_config.cmake
+@@ -47,12 +47,6 @@ file(APPEND "${pkgconfig_file}"
+ file(APPEND "${pkgconfig_file}" "Version: ${package_version}\n")
+ file(APPEND "${pkgconfig_file}" "Requires:\n")
+ file(APPEND "${pkgconfig_file}" "Conflicts:\n")
+-if(CONFIG_MULTITHREAD AND HAVE_PTHREAD_H)
+- file(APPEND "${pkgconfig_file}"
+- "Libs: -L\${prefix}/lib -l${pkg_name} -lm -lpthread\n")
+- file(APPEND "${pkgconfig_file}" "Libs.private: -lm -lpthread\n")
+-else()
+- file(APPEND "${pkgconfig_file}" "Libs: -L\${prefix}/lib -l${pkg_name} -lm\n")
+- file(APPEND "${pkgconfig_file}" "Libs.private: -lm\n")
+-endif()
++file(APPEND "${pkgconfig_file}" "Libs: -L\${prefix}/lib -l${pkg_name} -lm\n")
++file(APPEND "${pkgconfig_file}" "Libs.private: -lm\n")
+ file(APPEND "${pkgconfig_file}" "Cflags: -I\${prefix}/include\n")
diff --git a/contrib/src/aom/rules.mak b/contrib/src/aom/rules.mak
index f1973dc24f..94e4ad5eaf 100644
--- a/contrib/src/aom/rules.mak
+++ b/contrib/src/aom/rules.mak
@@ -23,6 +23,9 @@ aom: aom-$(AOM_VERSION).tar.gz .sum-aom
ifdef HAVE_WINSTORE
$(APPLY) $(SRC)/aom/aom-pthreads-win32.patch
endif
+ifdef HAVE_ANDROID
+ $(APPLY) $(SRC)/aom/aom-android-pthreads.patch
+endif
$(MOVE)
DEPS_aom =
More information about the vlc-commits
mailing list