Make sure rpath gets embedded into all executables too.
parent
b06ad40e65
commit
079c231b63
|
|
@ -193,6 +193,7 @@ if (LINUX)
|
|||
# linking can be very memory-hungry, especially the final viewer link
|
||||
#set(CMAKE_CXX_LINK_FLAGS "-Wl,--no-keep-memory")
|
||||
set(CMAKE_CXX_LINK_FLAGS "-Wl,--no-keep-memory -Wl,--build-id -Wl,-rpath,'$ORIGIN:$ORIGIN/../lib' -Wl,--exclude-libs,ALL")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "-Wl,--no-keep-memory -Wl,--build-id -Wl,-rpath,'$ORIGIN:$ORIGIN/../lib' -Wl,--exclude-libs,ALL")
|
||||
endif (NOT USESYSTEMLIBS)
|
||||
|
||||
set(CMAKE_CXX_FLAGS_DEBUG "-fno-inline ${CMAKE_CXX_FLAGS_DEBUG}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue