> 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.
I have tested that the attached patch to llvm works on linux.
Cheers,
Rafael
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 72901c8..52d3c0c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -446,6 +446,7 @@ if (APPLE)
set(CMAKE_INSTALL_NAME_DIR "@executable_path/../lib")
set(CMAKE_INSTALL_RPATH "@executable_path/../lib")
else(UNIX)
+ set(CMAKE_EXE_LINKER_FLAGS "-Wl,-zorigin")
if(NOT DEFINED CMAKE_INSTALL_RPATH)
set(CMAKE_INSTALL_RPATH "\$ORIGIN/../lib")
endif(NOT DEFINED CMAKE_INSTALL_RPATH)
_______________________________________________
lldb-dev mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev