On 27 February 2014 10:46, Rafael Espíndola <[email protected]> wrote:
>> It's not FreeBSD-specific; here it is in the GNU ld manual:
>> https://sourceware.org/binutils/docs/ld/Options.html#Options
>>
>> -z keyword
>> `origin' Marks the object may contain $ORIGIN.
>>
>> and it turns up in some Solaris references from the early 2000s as well.
>
> Oh, sorry. I was looking for it as a single option.
Oh, that's likely my mistake. I suspect it's properly set as "-z
origin" or "-Wl,-z -Wl,origin".
How about the attached patch?
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2ce214a..d068ada 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -445,6 +445,7 @@ if (APPLE)
else(UNIX)
if(NOT DEFINED CMAKE_INSTALL_RPATH)
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")
+ set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-z -Wl,origin")
endif(NOT DEFINED CMAKE_INSTALL_RPATH)
endif()
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev