[epiphany/wip/smcv/rpath: 550/550] build: Give all libraries a RUNPATH for our private libraries



commit 0b471efa0485a14cfe92736b05159f4a3b6b9ca6
Author: Simon McVittie <smcv debian org>
Date:   Fri Aug 30 18:05:40 2019 +0100

    build: Give all libraries a RUNPATH for our private libraries
    
    Setting a RUNPATH on a loadable module like libephywebextension is
    enough to search that directory for private libraries that it directly
    depends on, but not enough to search that directory for those libraries'
    dependencies, such as libephymisc loading the bundled libdazzle on the
    3.32 branch. Address this by giving libephymisc its own RUNPATH so it
    loads the correct dependencies.
    
    For completeness, do the same for all private shared libraries that
    didn't already have install_rpath.
    
    Signed-off-by: Simon McVittie <smcv debian org>
    Bug-Debian: https://bugs.debian.org/927731

 lib/meson.build      | 3 ++-
 lib/sync/meson.build | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/lib/meson.build b/lib/meson.build
index 2060d7d4e..cb309d166 100644
--- a/lib/meson.build
+++ b/lib/meson.build
@@ -86,7 +86,8 @@ libephymisc = shared_library('ephymisc',
   dependencies: libephymisc_deps,
   include_directories: libephymisc_includes,
   install: true,
-  install_dir: pkglibdir
+  install_dir: pkglibdir,
+  install_rpath: pkglibdir
 )
 
 ephymisc_dep = declare_dependency(
diff --git a/lib/sync/meson.build b/lib/sync/meson.build
index 5a5b066e8..73a0bfa1d 100644
--- a/lib/sync/meson.build
+++ b/lib/sync/meson.build
@@ -39,7 +39,8 @@ libephysync = shared_library('ephysync',
   dependencies: libephysync_deps,
   include_directories: libephysync_includes,
   install: true,
-  install_dir: pkglibdir
+  install_dir: pkglibdir,
+  install_rpath: pkglibdir
 )
 
 ephysync_dep = declare_dependency(


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]