File 0001-Link-cpuid-against-shared-library.patch of Package libyuv

From e5c2473313639ba8e0981f149cc01e973e750519 Mon Sep 17 00:00:00 2001
From: JS <obs.coke518@passinbox.com>
Date: Sun, 29 Dec 2024 22:38:31 +0800
Subject: [PATCH] Link cpuid against shared library

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

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3dfd430..b9777f1 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -185,7 +185,7 @@ SET_TARGET_PROPERTIES	( ${ly_lib_shared} PROPERTIES VERSION ${YUV_VERSION} SOVER
 
 # this creates the cpuid tool
 add_executable      ( cpuid ${ly_base_dir}/util/cpuid.c )
-target_link_libraries  ( cpuid ${ly_lib_static} )
+target_link_libraries  ( cpuid PRIVATE ${ly_lib_shared} )
 
 # this creates the conversion tool
 add_executable			( yuvconvert ${ly_base_dir}/util/yuvconvert.cc )
-- 
2.47.1

openSUSE Build Service is sponsored by