Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 1 | From c7950ef5228adc52a500b4fc67d7e48c3c09c1df Mon Sep 17 00:00:00 2001 |
| 2 | From: Dengke Du <dengke.du@windriver.com> |
| 3 | Date: Thu, 6 Apr 2017 23:02:44 -0400 |
| 4 | Subject: [PATCH 3/3] crash: detect the sysroot's glibc header file |
| 5 | |
| 6 | This is cross compile, so let the Makefile detect the sysroot's glibc |
| 7 | header file, not the host's glibc header file. |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | |
| 11 | Signed-off-by: Dengke Du <dengke.du@windriver.com> |
| 12 | --- |
| 13 | Makefile | 4 ++-- |
| 14 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 15 | |
| 16 | diff --git a/Makefile b/Makefile |
| 17 | index b6b7e80..94f21a5 100644 |
| 18 | --- a/Makefile |
| 19 | +++ b/Makefile |
| 20 | @@ -264,8 +264,8 @@ gdb_patch: |
| 21 | if [ "${ARCH}" = "x86_64" ] && [ "${TARGET}" = "PPC64" ] && [ -f ${GDB}-ppc64le-support.patch ]; then \ |
| 22 | patch -d ${GDB} -p1 -F0 < ${GDB}-ppc64le-support.patch ; \ |
| 23 | fi |
| 24 | - if [ -f /usr/include/proc_service.h ]; then \ |
| 25 | - grep 'extern ps_err_e ps_get_thread_area (struct' /usr/include/proc_service.h; \ |
| 26 | + if [ -f ${RECIPE_SYSROOT}/usr/include/proc_service.h ]; then \ |
| 27 | + grep 'extern ps_err_e ps_get_thread_area (struct' ${RECIPE_SYSROOT}/usr/include/proc_service.h; \ |
| 28 | if [ $$? -eq 0 ]; then \ |
| 29 | patch -p0 < ${GDB}-proc_service.h.patch; \ |
| 30 | fi; \ |
| 31 | -- |
| 32 | 2.8.1 |
| 33 | |