]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3731] Fix rpath to work in installation, in sources, and in the case where the...
authorAndrei Pavel <andrei@isc.org>
Mon, 24 Feb 2025 09:55:55 +0000 (11:55 +0200)
committerAndrei Pavel <andrei@isc.org>
Fri, 28 Feb 2025 12:25:47 +0000 (14:25 +0200)
meson.build

index 8b72733ea69b9d377114318fd7862d33cbe27b7d..a032a668945abfd18f75bde10f21d0091b6737a9 100644 (file)
@@ -419,11 +419,11 @@ link_args = []
 if SYSTEM == 'darwin'
     compile_args += ['-D__APPLE_USE_RFC_3542']
     add_project_arguments('-D__APPLE_USE_RFC_3542', language: 'cpp')
-    link_arg = f'-Wl,-rpath,@PREFIX@/lib'
+    link_arg = '-Wl,-rpath,$ORIGIN/../lib'
     link_args += [link_arg]
     add_project_link_arguments(link_arg, language: 'cpp')
 else
-    link_arg = f'-Wl,-rpath=@PREFIX@/lib'
+    link_arg = '-Wl,-rpath=$ORIGIN/../lib'
     link_args += [link_arg]
     add_project_link_arguments(link_arg, language: 'cpp')
 endif