]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3732] rpmbuild complains about standard rpaths so let us conform to its liking
authorAndrei Pavel <andrei@isc.org>
Wed, 26 Mar 2025 05:36:15 +0000 (07:36 +0200)
committerAndrei Pavel <andrei@isc.org>
Fri, 4 Apr 2025 09:37:20 +0000 (12:37 +0300)
meson.build

index a67213bb72f7b87005ff96d39f8530817ebddd45..bcaf5d5ef16a7f337691eb79942dc952748e9ee6 100644 (file)
@@ -544,8 +544,14 @@ link_args = []
 # $ORIGIN documented at https://www.man7.org/linux/man-pages/man8/ld.so.8.html
 # EXECUTABLE_RPATH = f'$ORIGIN/../@LIBDIR@'
 # HOOK_RPATH = '$ORIGIN/../..'
-INSTALL_RPATH = PREFIX / LIBDIR
 BUILD_RPATH = TOP_BUILD_DIR / 'src/lib'
+INSTALL_RPATH = PREFIX / LIBDIR
+# rpmbuild complains about rpaths to standard locations so let us conform to
+# its liking and remove them. And let's do it consistently for all packages.
+if kea_pkg_type_in_configure != ''
+    BUILD_RPATH = ''
+    INSTALL_RPATH = ''
+endif
 
 if SYSTEM == 'darwin'
     compile_args += '-D__APPLE_USE_RFC_3542'