diff options
Diffstat (limited to 'recipes-support/opencv/opencv/0001-Use-Os-to-compile-tinyxml2.cpp.patch')
-rw-r--r-- | recipes-support/opencv/opencv/0001-Use-Os-to-compile-tinyxml2.cpp.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/recipes-support/opencv/opencv/0001-Use-Os-to-compile-tinyxml2.cpp.patch b/recipes-support/opencv/opencv/0001-Use-Os-to-compile-tinyxml2.cpp.patch new file mode 100644 index 00000000..c5a64387 --- /dev/null +++ b/recipes-support/opencv/opencv/0001-Use-Os-to-compile-tinyxml2.cpp.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 59fafe6e39759e193b5764b36b4c5a93da352123 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 18 Aug 2020 00:36:49 -0700 | ||
4 | Subject: [PATCH] Use -Os to compile tinyxml2.cpp | ||
5 | |||
6 | This workarounds issue [1] seen on riscv with gcc | ||
7 | |||
8 | [1] https://github.com/riscv/riscv-gnu-toolchain/issues/624 | ||
9 | |||
10 | Upstream-Status: Inappropriate [ OE-Specific ] | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | modules/datasets/CMakeLists.txt | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/modules/datasets/CMakeLists.txt b/modules/datasets/CMakeLists.txt | ||
17 | index 56ca9e310..99b7a33f6 100644 | ||
18 | --- a/modules/datasets/CMakeLists.txt | ||
19 | +++ b/modules/datasets/CMakeLists.txt | ||
20 | @@ -2,7 +2,7 @@ set(the_description "datasets framework") | ||
21 | |||
22 | set(filter_srcs "${CMAKE_CURRENT_LIST_DIR}/src/tinyxml2/tinyxml2.cpp") | ||
23 | if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||
24 | - ocv_append_source_files_cxx_compiler_options(filter_srcs "-Wno-suggest-override") # GCC | ||
25 | + ocv_append_source_files_cxx_compiler_options(filter_srcs "-Wno-suggest-override -Os") # GCC | ||
26 | elseif(CMAKE_CXX_COMPILER_ID STREQUAL "Clang") | ||
27 | ocv_append_source_files_cxx_compiler_options(filter_srcs "-Wno-inconsistent-missing-override") # Clang | ||
28 | endif() | ||
29 | -- | ||
30 | 2.28.0 | ||
31 | |||