diff options
author | CoprDistGit <infra@openeuler.org> | 2025-03-06 09:13:30 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2025-03-06 09:13:30 +0000 |
commit | 4d018693fbd18be77e8b5501cfcd2c6265581967 (patch) | |
tree | a5e4ba824efae025ea5b90e65b43c9eb3afd6fe1 /libyuv-0003-Link-against-shared-library.patch | |
parent | fd4bbf82cbd4b906e7c85186c293427595c2cdf9 (diff) |
automatic import of libyuv
Diffstat (limited to 'libyuv-0003-Link-against-shared-library.patch')
-rw-r--r-- | libyuv-0003-Link-against-shared-library.patch | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/libyuv-0003-Link-against-shared-library.patch b/libyuv-0003-Link-against-shared-library.patch new file mode 100644 index 0000000..c64c32d --- /dev/null +++ b/libyuv-0003-Link-against-shared-library.patch @@ -0,0 +1,38 @@ +From: Peter Lemenkov <lemenkov@gmail.com> +Date: Fri, 21 Sep 2018 12:47:42 +0200 +Subject: [PATCH] Link against shared library + +Signed-off-by: Peter Lemenkov <lemenkov@gmail.com> + +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 408032c6..a8368af4 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -130,15 +130,15 @@ endif() + + # 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 ${ly_lib_shared} ) + + # this creates the conversion tool + ADD_EXECUTABLE ( yuvconvert ${ly_base_dir}/util/yuvconvert.cc ) +-TARGET_LINK_LIBRARIES ( yuvconvert ${ly_lib_static} ) ++TARGET_LINK_LIBRARIES ( yuvconvert ${ly_lib_shared} ) + + # this creates the yuvconstants tool + ADD_EXECUTABLE ( yuvconstants ${ly_base_dir}/util/yuvconstants.c ) +-TARGET_LINK_LIBRARIES ( yuvconstants ${ly_lib_static} ) ++TARGET_LINK_LIBRARIES ( yuvconstants ${ly_lib_shared} ) + + find_package ( JPEG ) + if (JPEG_FOUND) +@@ -168,7 +168,7 @@ if(UNIT_TEST) + endif() + + add_executable(libyuv_unittest ${ly_unittest_sources}) +- target_link_libraries(libyuv_unittest ${ly_lib_name} ${GTEST_LIBRARY}) ++ target_link_libraries(libyuv_unittest ${ly_lib_shared} ${GTEST_LIBRARY}) + find_library(PTHREAD_LIBRARY pthread) + if(NOT PTHREAD_LIBRARY STREQUAL "PTHREAD_LIBRARY-NOTFOUND") + target_link_libraries(libyuv_unittest pthread) |