2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-31 05:55:28 +00:00

[#3732] Fix NETCONF rpaths

This commit is contained in:
Andrei Pavel
2025-04-25 13:49:14 +03:00
parent a3f69d7430
commit df1c04ca1f

View File

@@ -590,6 +590,12 @@ INSTALL_RPATH = PREFIX / LIBDIR
# Add rpaths for NETCONF dependencies.
if NETCONF_DEP.found()
# Flag needed to force use of rpath instead of runpath which is transitive
# e.g. sysrepo is able to find libyang.
if cpp.has_link_argument('-Wl,--disable-new-dtags')
add_project_link_arguments(['-Wl,--disable-new-dtags'], language: 'cpp')
endif
foreach i : ['yang', 'yang-cpp', 'sysrepo', 'sysrepo-cpp']
libdir = NETCONF_DEP.get_variable(f'@i@-libdir')
BUILD_RPATH += f':@libdir@'