On Wed, Jun 20, 2012 at 7:03 AM, Tasslehoff Kjappfot <tasskj...@gmail.com>wrote:
> On 06/19/2012 10:33 PM, Khem Raj wrote: > >> Sdk is not install time relocatable yet there is a feature enhancement >> request in yo to bugzilla for the same >> >> That request is mine, I think. I have gotten around this by making > /usr/local/oecore-i686 a symlink to where I want to keep the toolchain (in > a vcs). Works like a charm. > I've got it to run by: 1. Changing the dynamic loader to the system loader and making RPATH directives use relative paths in the elf files in: * x86_64-angstromsdk-linux/usr/libexec/armv7a-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4/ * x86_64-angstromsdk-linux/usr/bin/armv7a-angstrom-linux-gnueabi with patchelf (http://nixos.org/patchelf.html): for x in *; do echo $x; patchelf --set-interpreter /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 $x; patchelf --set-rpath "\$ORIGIN/../../lib/armv7a-angstrom-linux-gnueabi/:\$ORIGIN/../../../lib/:\$ORIGIN/../../lib" $x; done 2. Making the symlinks in x86_64-angstromsdk-linux/usr/libexec/armv7a-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4/ use relative paths: x86_64-angstromsdk-linux/usr/libexec/armv7a-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4$ cat tweak_target.sh #!/bin/bash FILE=`basename $1` ln -f -s ../../../../../bin/armv7a-angstrom-linux-gnueabi/arm-angstrom-linux-gnueabi-$FILE $FILE x86_64-angstromsdk-linux/usr/libexec/armv7a-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4$ find . -type l -exec ./tweak_target.sh {} \; This feels like a rather unpleasant hack so I'm going to use the codesourcery compiler for now, but this does appear to work. Thanks, Steve
_______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core