On 03.08.2016 22:00, Edgar Fuß wrote: >> LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/icinga2 > OK, thanks, that works, but what's the official CMake way? > In CMake itself something like that: set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) set(CMAKE_INSTALL_RPATH "${PREFIX}/lib/icinga2") But it shouldn't be used, as it's already set per-platform in mk/configure/cmake.mk: .if ${OPSYS} != "Darwin" CMAKE_ARGS+= -DCMAKE_SKIP_RPATH:BOOL=TRUE .else CMAKE_ARGS+= -DCMAKE_SKIP_RPATH:BOOL=FALSE CMAKE_ARGS+= -DCMAKE_INSTALL_NAME_DIR:PATH=${PREFIX}/lib .endif Some CMake packages set $ORIGIN for enabled RPATH, it's not valid in pkgsrc.
Attachment:
signature.asc
Description: OpenPGP digital signature