>The down side is if you don't install the shared libraries on the host<br><div class="gmail_quote">
>you won't be able to run the resulting binaries (unless they're<br>
>statically linked), because the shared library loader location is<br>
>hardwired into each binary as an absolute path, that's a limitation of<br>
>the ELF spec.  You can specify a different location for it to hardwire<br>
>in (export CCWRAP_DYNAMIC_LINKER=/blah/ld-uClibc.so.0), but that's not<br>
>much of an improvement.<br><br>I don't know if it's useful to anybody, but PatchELF ( <a href="http://nixos.org/patchelf.html">http://nixos.org/patchelf.html</a> ) allows you to add, modify, and delete an ELF executable's RPATH or interpreter path. Also, the old, unmaintained chrpath (dead upstream, still available in Debian) allows you to modify the RPATH, with some limitations.<br>
<br>I've found chrpath useful once or twice when I need to build stuff in an environment where the libraries must be relocated as part of post-build deployment, and PatchELF looks like it's a vast improvement over chrpath. I haven't yet used it, though.<br>
<br><br></div>