> It isn't being set in the configure build. With the configure build
> rtld first fails on the $ORIGIN due to the missing flag, but still
> finds the library via the the "backup" absolute path. It will still
> need an equivalent change.
Ah, OK.
So, this is not lldb specific (the -DBUILD_SHARED_LIBS=ON build is
probably broken on freebsd right now). It seems to be freebsd specific
(i don't see zorigin anywhere in binutils). Maybe what we should do is
apply the attached patch to llvm?
Cheers,
Rafael
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 72901c8..37d76f2 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -446,6 +446,9 @@ if (APPLE)
set(CMAKE_INSTALL_NAME_DIR "@executable_path/../lib")
set(CMAKE_INSTALL_RPATH "@executable_path/../lib")
else(UNIX)
+ if( ${CMAKE_SYSTEM_NAME} MATCHES FreeBSD )
+ set(CMAKE_EXE_LINKER_FLAGS "-Wl,-zorigin")
+ endif()
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