$NetBSD: patch-src_cmake_compiler.cmake,v 1.4 2025/08/13 06:35:13 wiz Exp $ Disable custom rpath handling that conflicts with pkgsrc. --- src/cmake/compiler.cmake.orig 2025-08-13 06:30:18.571566460 +0000 +++ src/cmake/compiler.cmake @@ -688,36 +688,6 @@ endif () ########################################################################### -# Rpath handling at the install step -# -# set (MACOSX_RPATH ON) -if (CMAKE_SKIP_RPATH) - # We need to disallow the user from truly setting CMAKE_SKIP_RPATH, since - # we want to run the generated executables from the build tree in order to - # generate the manual page documentation. However, we make sure the - # install rpath is unset so that the install tree is still free of rpaths - # for linux packaging purposes. - set (CMAKE_SKIP_RPATH FALSE) - unset (CMAKE_INSTALL_RPATH) -else () - if (NOT CMAKE_INSTALL_RPATH) - if(APPLE) - set(BASEPOINT @loader_path) - else() - set(BASEPOINT $ORIGIN) - endif() - set (CMAKE_INSTALL_RPATH ${BASEPOINT} - ${BASEPOINT}/${CMAKE_INSTALL_LIBDIR} - ${BASEPOINT}/../${CMAKE_INSTALL_LIBDIR}) - endif () - # add the automatically determined parts of the RPATH that - # point to directories outside the build tree to the install RPATH - set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) - message (VERBOSE "CMAKE_INSTALL_RPATH = ${CMAKE_INSTALL_RPATH}") -endif () - - -########################################################################### # Generate compile_commands.json for use by editors and tools. set (CMAKE_EXPORT_COMPILE_COMMANDS ON)