From 1e82416a938a962ed626f9f628dd0f89d49d05a8 Mon Sep 17 00:00:00 2001 From: Martin Hostettler Date: Sun, 18 Feb 2018 17:40:47 +0100 Subject: [PATCH] Generate build rpath for pkg-config dependencies consisting of a one absolute path --- mesonbuild/backend/backends.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 62cc75602..b547bc3e7 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -312,7 +312,7 @@ class Backend: def rpaths_for_bundled_shared_libraries(self, target): paths = [] for dep in target.external_deps: - if isinstance(dep, dependencies.ExternalLibrary): + if isinstance(dep, (dependencies.ExternalLibrary, dependencies.PkgConfigDependency)): la = dep.link_args if len(la) == 1 and os.path.isabs(la[0]): # The only link argument is an absolute path to a library file.