Patchwork gdb-cross-canadian: use correct exec-prefix path for python

login
register
mail settings
Submitter Samuli Piippo
Date May 27, 2013, 10:24 a.m.
Message ID <1369650285-13285-1-git-send-email-samuli.piippo@digia.com>
Download mbox | patch
Permalink /patch/50559/
State Accepted
Commit 0d2211a41ccfb59296091059fc0ee569a8c6e13f
Headers show

Comments

Samuli Piippo - May 27, 2013, 10:24 a.m.
Incorrect exec-prefix path was given to gdb which leads to gdb
startup failure when SDK is not installed to its original destination.
Gdb relocates the exec-prefix path, so it will work for SDKs that
are installed to different location. PYTHONHOME env in no longer
neeeded for gdb.

[YOCTO #3839]
---
 meta/recipes-devtools/gdb/gdb-cross-canadian.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
index f6f515c..3cb347b 100644
--- a/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
+++ b/meta/recipes-devtools/gdb/gdb-cross-canadian.inc
@@ -19,7 +19,7 @@  cat > ${WORKDIR}/python << EOF
 case "\$2" in
         --includes) echo "-I${STAGING_INCDIR}/${PYTHON_DIR}/" ;;
         --ldflags) echo "-Wl,-rpath-link,${STAGING_LIBDIR}/.. -Wl,-rpath,${libdir}/.. -lpthread -ldl -lutil -lm -lpython${PYTHON_BASEVERSION}" ;;
-        --exec-prefix) echo "${exec_prefix}/bin" ;;
+        --exec-prefix) echo "${exec_prefix}" ;;
         *) exit 1 ;;
 esac
 exit 0