[LLVMbugs] [Bug 14189] New: cmake strips rpath

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri Oct 26 12:59:02 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=14189

             Bug #: 14189
           Summary: cmake strips rpath
           Product: Build scripts
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: cmake
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


When linking lib/LLVMgold.so cmake runs

clang ... -Wl,-rpath,/home/espindola/llvm/build/lib

The result is that ldd lib/LLVMgold.so print the correct libLTO.so:

libLTO.so => /home/espindola/llvm/build/lib/libLTO.so (0x00007f1fcdd77000)

but if I install the build, I get

-- Removed runtime path from "/home/espindola/inst/clang/lib/LLVMgold.so"

and now LLVMgold.so points to the system one:

ldd ~/inst/clang/lib/LLVMgold.so

libLTO.so => /usr/lib64/llvm/libLTO.so

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list