summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/pstack/files/0001-tests-fix-the-issue-of-cross-compilation-failure.patch
diff options
context:
space:
mode:
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.patch28
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 @@
1From a8c3996d3f8d9b8f3a2888b7062c1139263c5aba Mon Sep 17 00:00:00 2001
2From: Wen Yang <yellowriver2010@hotmail.com>
3Date: Mon, 23 Jun 2025 02:06:53 +0800
4Subject: [PATCH] tests: fix the issue of cross compilation failure
5
6By replacing objcopy with MAKE_OBJCOPY, pstack could support both
7native and cross compilation.
8
9Upstream-Status: Backport [https://github.com/peadar/pstack/pull/38]
10---
11 tests/CMakeLists.txt | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
15index 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--
282.25.1