On 02/27/2014 10:47 AM, Rafael Espíndola wrote:
> The attached patch should fix both issues.

Perhaps -zorigin should be used only when we are using $ORIGIN?

  if(NOT DEFINED CMAKE_INSTALL_RPATH)
    set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")
    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-zorigin")
  endif()

If a user sets CMAKE_INSTALL_RPATH to include $ORIGIN then he/she
can also add -zorigin as necessary.

-Brad

_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev

Reply via email to