[cfe-dev] [3.3 Release] 3.3rc3 Now Available

Sylvestre Ledru sylvestre at debian.org
Fri Jun 7 05:58:14 PDT 2013


On 06/06/2013 18:04, Hans Wennborg wrote:> It's probably PR12517.
>
> Looking at the clang binary, it's got a /home/ dir in RPATH:
>
> $ objdump -p clang+llvm-3.3rc3-Ubuntu-12.04.2-x86_64/bin/clang | grep
RPATH
>   RPATH
>
$ORIGIN/../lib:/home/aadgrand/tmp/LLVM-3.3rc3/rc3/Phase3/Release+Asserts/llvmCore-3.3-rc3.obj/Release+Asserts/bin
To avoid such behavior [1] , in Debian and Ubuntu packages, I am doing:

chrpath -d $(TARGET_BUILD)/Release/bin/clang
chrpath -d `find $(CURDIR)/debian/tmp/usr/lib/llvm-$(LLVM_VERSION)/bin/
-type f -executable`

Sylvestre
[1] http://wiki.debian.org/RpathIssue




More information about the cfe-dev mailing list