gdb-cross-canadian: Fix linking issues when python support is enabled
authorKhem Raj <raj.khem@gmail.com>
Fri, 23 Mar 2012 12:50:41 +0000 (05:50 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 23 Mar 2012 14:00:55 +0000 (14:00 +0000)
commite22f9e1e7f1d91e8a003905da6c0f471cbc07be4
treeec07fb00803d37917323f7ce0f2a54862b2d08b8
parentdd57cf35ca89dfa8e63d11cda578aedc09bfb67f
gdb-cross-canadian: Fix linking issues when python support is enabled

gdb-cross-canadian was linking with static version of libpython
and looking for build host python when run. This could be mismatch
between python-nativesdk and build host provided python. So we
make it consistent to always use python-nativesdk

Instead of adding bunch of -L we add -rpath and -rpath-link
so that gdb finds all needed libraries in SDK and does not
reach out into host

This should fix yocto PR# 2077 as well.

(From OE-Core rev: d56177c59b5e237a501281d806724885456f0193)

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gdb/gdb-cross-canadian.inc
meta/recipes-devtools/gdb/gdb-cross-canadian_7.4.bb