<div dir="ltr">Scrubbing it after the fact from the binary also works.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 7, 2013 at 8:58 AM, Sylvestre Ledru <span dir="ltr"><<a href="mailto:sylvestre@debian.org" target="_blank">sylvestre@debian.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 06/06/2013 18:04, Hans Wennborg wrote:> It's probably PR12517.<br>
<div class="im">><br>
> Looking at the clang binary, it's got a /home/ dir in RPATH:<br>
><br>
> $ objdump -p clang+llvm-3.3rc3-Ubuntu-12.04.2-x86_64/bin/clang | grep<br>
RPATH<br>
>   RPATH<br>
><br>
$ORIGIN/../lib:/home/aadgrand/tmp/LLVM-3.3rc3/rc3/Phase3/Release+Asserts/llvmCore-3.3-rc3.obj/Release+Asserts/bin<br>
</div>To avoid such behavior [1] , in Debian and Ubuntu packages, I am doing:<br>
<br>
chrpath -d $(TARGET_BUILD)/Release/bin/clang<br>
chrpath -d `find $(CURDIR)/debian/tmp/usr/lib/llvm-$(LLVM_VERSION)/bin/<br>
-type f -executable`<br>
<br>
Sylvestre<br>
[1] <a href="http://wiki.debian.org/RpathIssue" target="_blank">http://wiki.debian.org/RpathIssue</a><br>
<div class="HOEnZb"><div class="h5"><br>
_______________________________________________<br>
cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div></div></blockquote></div><br></div>