]> code.ossystems Code Review - openembedded-core.git/commitdiff
gdb-cross-canadian: use correct exec-prefix path for python
authorSamuli Piippo <samuli.piippo@digia.com>
Mon, 27 May 2013 10:24:45 +0000 (13:24 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 29 May 2013 21:07:22 +0000 (22:07 +0100)
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]

Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-devtools/gdb/gdb-cross-canadian.inc

index f6f515cbf6aba3fd1d834dd2e12661c0a862daf8..3cb347b4c5a562028000bca089c248f3ffc53428 100644 (file)
@@ -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