<div class="gmail_quote">On Wed, Jun 20, 2012 at 7:03 AM, Tasslehoff Kjappfot <span dir="ltr">&lt;<a href="mailto:tasskjapp@gmail.com" target="_blank">tasskjapp@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im">On 06/19/2012 10:33 PM, Khem Raj wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Sdk is not install time relocatable yet there is a feature enhancement<br><div class="im">
request in yo to bugzilla for the same<br>
<br>
</div></blockquote>
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.<br></blockquote></div><br>I&#39;ve got it to run by:<br>
1. Changing the dynamic loader to the system loader and making RPATH directives use relative paths in the elf files in:<br>* x86_64-angstromsdk-linux/usr/libexec/armv7a-angstrom-linux-gnueabi/gcc/arm-angstrom-linux-gnueabi/4.5.4/<br>
* x86_64-angstromsdk-linux/usr/bin/armv7a-angstrom-linux-gnueabi<br><br>with patchelf (<a href="http://nixos.org/patchelf.html">http://nixos.org/patchelf.html</a>):<br><pre>for x in *; do echo $x; patchelf --set-interpreter /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2 $x; patchelf --set-rpath &quot;\$ORIGIN/../../lib/armv7a-angstrom-linux-gnueabi/:\$ORIGIN/../../../lib/:\$ORIGIN/../../lib&quot; $x; done</pre>
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:<br><pre>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 {} \;</pre>This feels like a rather unpleasant hack so I&#39;m going to use the codesourcery compiler for now, but this does appear to work.<br>
<br>Thanks,<br><br>Steve<br><br>