File libaom-0002-link-threading-lib-with-shared-library.patch of Package libaom

From 0dc35c2eb16cf3f200b52243b0360cab211a1e95 Mon Sep 17 00:00:00 2001
From: Martin Herkt <lachs0r@srsfckn.biz>
Date: Fri, 27 Jul 2018 15:56:39 +0200
Subject: [PATCH 2/3] link threading lib with shared library

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0b445722d..e25914ff0 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -552,7 +552,7 @@ endif()
 
 if(HAVE_PTHREAD_H AND CONFIG_MULTITHREAD)
   find_package(Threads)
-  foreach(app_target ${AOM_APP_TARGETS})
+  foreach(app_target ${AOM_APP_TARGETS} aom)
     target_link_libraries(${app_target} ${AOM_LIB_LINK_TYPE} Threads::Threads)
   endforeach()
 endif()
-- 
2.18.0
openSUSE Build Service is sponsored by