diff options
Diffstat (limited to 'meta-oe/recipes-devtools/pstack/files/0001-tests-fix-the-issue-of-cross-compilation-failure.patch')
-rw-r--r-- | meta-oe/recipes-devtools/pstack/files/0001-tests-fix-the-issue-of-cross-compilation-failure.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/meta-oe/recipes-devtools/pstack/files/0001-tests-fix-the-issue-of-cross-compilation-failure.patch b/meta-oe/recipes-devtools/pstack/files/0001-tests-fix-the-issue-of-cross-compilation-failure.patch new file mode 100644 index 0000000000..2b54750e7a --- /dev/null +++ b/meta-oe/recipes-devtools/pstack/files/0001-tests-fix-the-issue-of-cross-compilation-failure.patch | |||
@@ -0,0 +1,28 @@ | |||
1 | From a8c3996d3f8d9b8f3a2888b7062c1139263c5aba Mon Sep 17 00:00:00 2001 | ||
2 | From: Wen Yang <yellowriver2010@hotmail.com> | ||
3 | Date: Mon, 23 Jun 2025 02:06:53 +0800 | ||
4 | Subject: [PATCH] tests: fix the issue of cross compilation failure | ||
5 | |||
6 | By replacing objcopy with MAKE_OBJCOPY, pstack could support both | ||
7 | native and cross compilation. | ||
8 | |||
9 | Upstream-Status: Backport [https://github.com/peadar/pstack/pull/38] | ||
10 | --- | ||
11 | tests/CMakeLists.txt | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt | ||
15 | index 71a62a7..bf11a04 100644 | ||
16 | --- a/tests/CMakeLists.txt | ||
17 | +++ b/tests/CMakeLists.txt | ||
18 | @@ -38,7 +38,7 @@ SET_TARGET_PROPERTIES(noreturn PROPERTIES COMPILE_FLAGS "-O2 -g") | ||
19 | |||
20 | add_custom_command( | ||
21 | OUTPUT basic-no-unwind-gen | ||
22 | - COMMAND objcopy --strip-debug --remove-section .eh_frame basic basic-no-unwind | ||
23 | + COMMAND ${CMAKE_OBJCOPY} --strip-debug --remove-section .eh_frame basic basic-no-unwind | ||
24 | VERBATIM ) | ||
25 | |||
26 | add_custom_target(basic-no-unwind ALL DEPENDS basic basic-no-unwind-gen) | ||
27 | -- | ||
28 | 2.25.1 | ||