]> code.ossystems Code Review - openembedded-core.git/commit
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:43 +0000 (14:00 +0000)
commitd56177c59b5e237a501281d806724885456f0193
tree9b3b8637a30bb5ac84ec7d33bca64a2f2ae94fcd
parent5de06b564a949d0d9ec254817feacf9ad18d098c
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.

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