[PATCH] Use an RPATH with LLVMgold

Stephen Checkoway s at pahtak.org
Wed Oct 16 13:07:36 PDT 2013


On Oct 8, 2013, at 7:20 PM, Rafael EspĂ­ndola <rafael.espindola at gmail.com> wrote:

> I get the following error when installing:
> 
> ------------------------------------------------------------
> CMake Error at tools/gold/cmake_install.cmake:45 (FILE):
>  file RPATH_CHANGE could not write new RPATH:
> 
>    $ORIGIN
> 
>  to the file:
> 
>    /home/espindola/llvm/test-install/lib/LLVMgold.so
> 
>  The current RUNPATH is:
> 
>    /home/espindola/llvm/build/lib
> 
>  which does not contain:
> 
>    /home/espindola/llvm/build/lib:
> -----------------------------------------------------

Sorry to take so long on this. When I build, my tools/gold/cmake_install.cmake is only 34 lines long.

> Maybe it is possible to get cmake to not set the rpath automatically
> and manually pass the flag when linking LLVMgold.so?


We can certainly do this. I'd be curious to actually figure out what the problem is. The error message is a little bizarre. It's complaining about the current RUNPATH not containing itself with a colon?

-- 
Stephen Checkoway









More information about the llvm-commits mailing list