Skip to content

Commit

Permalink
vmware: use rpath instead of runpath
Browse files Browse the repository at this point in the history
This patch sets --disable-new-dtags when linking vadp-dumper. We need to
force using rpath instead of runpath, as vixDiskLib lacks both and only
rpath will propagate to dynamically linked libraries.

(backport based on commit dd4f762)
  • Loading branch information
arogge committed Dec 10, 2020
1 parent 6c09f81 commit 4d74b8c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions vmware/vadp_dumper/CMakeLists.txt
@@ -1,5 +1,7 @@
include_directories(/usr/lib/vmware-vix-disklib/include)
link_directories(/usr/lib/vmware-vix-disklib/lib64)
add_link_options("-Wl,--disable-new-dtags")
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH true)
add_executable(bareos_vadp_dumper bareos_vadp_dumper.cc cbuf.cc copy_thread.cc)
target_link_libraries(bareos_vadp_dumper vixDiskLib pthread jansson)

Expand Down

0 comments on commit 4d74b8c

Please sign in to comment.