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

            Bug ID: 19875
           Summary: libraries and executables need different rpaths
           Product: Build scripts
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: cmake
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified

Created attachment 12569
  --> http://llvm.org/bugs/attachment.cgi?id=12569&action=edit
a hack that fixes the issue by setting CMAKE_MODULE_LINKER_FLAGS directly

Some libraries are not always installed in a directory called lib, so using

 set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")

fails in that case. 

In particular, the binutils plugins are installed in a directory called
bfd-plugins.


What the configure build does is to use $ORIGIN/../lib for executables but
$ORIGIN for libraries

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to