[LLVMdev] rpath'd binaries

Reid Spencer rspencer at reidspencer.com
Sun Jul 22 11:57:07 PDT 2007


Hi jlh,

On Sun, 2007-07-22 at 12:41 +0200, jlh wrote:
> Hello!
> 
> I noticed that the binaries of all llvm tools contain an rpath to
> $OBJDIR/Release/bin.  I just only learned about rpaths, but the
> way I understand them this would only make sense if that path
> would contain shared libraries, which it doesn't.  

That's not entirely true. Its possible to build with shared libraries,
its just not the default method.

> Especially it
> makes no sense if I install the binaries and delete the build
> directory (where it potentially even leaves a security issue
> behind).  Am I missing something, or can I safely adjust
> Makefile.rules to not use any rpath?

I agree. I'm currently revising the makefile system to deal with this
issues, and numerous other issues. What we need to do is use libtool
more effectively so that the build binaries have rpath to the build area
but installed binaries have either no rpath (static link) or an rpath to
the installed libraries (shared libs link).

You can probably fix this yourself in Makefile.rules, but we'll be
converting to the revised makefile system in the coming month or two.
You can track the progress of the new system by watching the commits on
the support module in the SVN repository.

Reid.

> 
> Thanks,
> jlh
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list