diff options
-rw-r--r-- | meta-oe/recipes-support/glog/glog/libexecinfo.patch | 23 | ||||
-rw-r--r-- | meta-oe/recipes-support/glog/glog_0.6.0.bb (renamed from meta-oe/recipes-support/glog/glog_0.5.0.bb) | 2 |
2 files changed, 18 insertions, 7 deletions
diff --git a/meta-oe/recipes-support/glog/glog/libexecinfo.patch b/meta-oe/recipes-support/glog/glog/libexecinfo.patch index 927c269a6a..a791a40dbc 100644 --- a/meta-oe/recipes-support/glog/glog/libexecinfo.patch +++ b/meta-oe/recipes-support/glog/glog/libexecinfo.patch | |||
@@ -1,4 +1,8 @@ | |||
1 | Link libexecinfo if its found, this is needed for musl based systems | 1 | From 19d00c15710840910a7397252c14d612746631fe Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 8 Mar 2021 14:58:40 -0800 | ||
4 | Subject: [PATCH] Link libexecinfo if its found, this is needed for musl based | ||
5 | systems | ||
2 | 6 | ||
3 | Fixes | 7 | Fixes |
4 | ld: libglog.so.0.4.0: undefined reference to `backtrace' | 8 | ld: libglog.so.0.4.0: undefined reference to `backtrace' |
@@ -6,17 +10,24 @@ ld: libglog.so.0.4.0: undefined reference to `backtrace' | |||
6 | 10 | ||
7 | Upstream-Status: Pending | 11 | Upstream-Status: Pending |
8 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
13 | |||
14 | --- | ||
15 | CMakeLists.txt | 5 +++++ | ||
16 | 1 file changed, 5 insertions(+) | ||
17 | |||
18 | diff --git a/CMakeLists.txt b/CMakeLists.txt | ||
19 | index 846b444..1553358 100644 | ||
9 | --- a/CMakeLists.txt | 20 | --- a/CMakeLists.txt |
10 | +++ b/CMakeLists.txt | 21 | +++ b/CMakeLists.txt |
11 | @@ -144,6 +144,7 @@ check_cxx_compiler_flag (-Wunnamed-type- | 22 | @@ -162,6 +162,7 @@ cmake_pop_check_state () |
12 | check_symbol_exists (snprintf cstdio HAVE_SNPRINTF) | 23 | check_cxx_symbol_exists (snprintf cstdio HAVE_SNPRINTF) |
13 | 24 | ||
14 | check_library_exists (dbghelp UnDecorateSymbolName "" HAVE_DBGHELP) | 25 | check_library_exists (dbghelp UnDecorateSymbolName "" HAVE_DBGHELP) |
15 | +check_library_exists (execinfo backtrace "" HAVE_EXECINFO) | 26 | +check_library_exists (execinfo backtrace "" HAVE_EXECINFO) |
16 | 27 | ||
17 | check_cxx_source_compiles (" | 28 | check_cxx_source_compiles (" |
18 | #include <cstdlib> | 29 | #include <cstdlib> |
19 | @@ -584,6 +585,10 @@ if (Unwind_FOUND) | 30 | @@ -629,6 +630,10 @@ if (Unwind_FOUND) |
20 | set (Unwind_DEPENDENCY "find_dependency (Unwind ${Unwind_VERSION})") | 31 | set (Unwind_DEPENDENCY "find_dependency (Unwind ${Unwind_VERSION})") |
21 | endif (Unwind_FOUND) | 32 | endif (Unwind_FOUND) |
22 | 33 | ||
@@ -25,5 +36,5 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
25 | +endif (HAVE_EXECINFO) | 36 | +endif (HAVE_EXECINFO) |
26 | + | 37 | + |
27 | if (HAVE_DBGHELP) | 38 | if (HAVE_DBGHELP) |
28 | target_link_libraries (glog PUBLIC dbghelp) | 39 | target_link_libraries (glog PRIVATE dbghelp) |
29 | endif (HAVE_DBGHELP) | 40 | set (glog_libraries_options_for_static_linking "${glog_libraries_options_for_static_linking} -ldbghelp") |
diff --git a/meta-oe/recipes-support/glog/glog_0.5.0.bb b/meta-oe/recipes-support/glog/glog_0.6.0.bb index 61581d96d7..18291600c5 100644 --- a/meta-oe/recipes-support/glog/glog_0.5.0.bb +++ b/meta-oe/recipes-support/glog/glog_0.6.0.bb | |||
@@ -11,7 +11,7 @@ SRC_URI = " \ | |||
11 | file://libexecinfo.patch \ | 11 | file://libexecinfo.patch \ |
12 | " | 12 | " |
13 | 13 | ||
14 | SRCREV = "8f9ccfe770add9e4c64e9b25c102658e3c763b73" | 14 | SRCREV = "b33e3bad4c46c8a6345525fd822af355e5ef9446" |
15 | 15 | ||
16 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |
17 | 17 | ||