diff options
Diffstat (limited to 'dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-Fix-build-issues-due-to-gflag-and-zlib.patch')
-rw-r--r-- | dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-Fix-build-issues-due-to-gflag-and-zlib.patch | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-Fix-build-issues-due-to-gflag-and-zlib.patch b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-Fix-build-issues-due-to-gflag-and-zlib.patch new file mode 100644 index 00000000..ffb0f95d --- /dev/null +++ b/dynamic-layers/openembedded-layer/recipes-support/opencv/files/0003-Fix-build-issues-due-to-gflag-and-zlib.patch | |||
@@ -0,0 +1,40 @@ | |||
1 | From a817386f1d0539a040fbdc02853a73bbcdddf1f1 Mon Sep 17 00:00:00 2001 | ||
2 | From: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
3 | Date: Fri, 30 Sep 2022 20:26:04 +0800 | ||
4 | Subject: [PATCH] Fix build issues due to gflag and zlib | ||
5 | |||
6 | Change gflag to shared as we are not building with static library. | ||
7 | We are using zlib from host, so don't add zlib as third party package | ||
8 | |||
9 | Upstream-Status: Inappropriate | ||
10 | |||
11 | Signed-off-by: Yogesh Tyagi <yogesh.tyagi@intel.com> | ||
12 | --- | ||
13 | thirdparty/CMakeLists.txt | 4 ++-- | ||
14 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
15 | |||
16 | diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt | ||
17 | index 4cba1588fe..f82bf3148b 100644 | ||
18 | --- a/thirdparty/CMakeLists.txt | ||
19 | +++ b/thirdparty/CMakeLists.txt | ||
20 | @@ -39,7 +39,7 @@ if(NOT CMAKE_CROSSCOMPILING) | ||
21 | endif() | ||
22 | |||
23 | if(NOT zlib_FOUND) | ||
24 | - add_subdirectory(zlib EXCLUDE_FROM_ALL) | ||
25 | + #add_subdirectory(zlib EXCLUDE_FROM_ALL) | ||
26 | endif() | ||
27 | |||
28 | # | ||
29 | @@ -85,7 +85,7 @@ ov_install_static_lib(fluid openvino_common) | ||
30 | |||
31 | if(NOT APPLE) | ||
32 | # on Apple only dynamic libraries are available | ||
33 | - find_package(gflags QUIET COMPONENTS nothreads_static) | ||
34 | + find_package(gflags QUIET COMPONENTS nothreads_shared) | ||
35 | endif() | ||
36 | |||
37 | if(gflags_FOUND) | ||
38 | -- | ||
39 | 2.37.3 | ||
40 | |||