From 8987a3967563a32ece52eb0d3a62a1702f4c6d87 Mon Sep 17 00:00:00 2001 From: Ryan Lucia Date: Sat, 5 Oct 2019 16:09:58 -0400 Subject: pkgconfig: only check import_filename for shared libraries --- mesonbuild/modules/pkgconfig.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py index 043df2980..a37dd4f66 100644 --- a/mesonbuild/modules/pkgconfig.py +++ b/mesonbuild/modules/pkgconfig.py @@ -231,7 +231,7 @@ class PkgConfigModule(ExtensionModule): return l.name[3:] # If the library is imported via an import library which is always # named after the target name, '-lfoo' is correct. - if l.import_filename: + if isinstance(l, build.SharedLibrary) and l.import_filename: return l.name # In other cases, we can't guarantee that the compiler will be able to # find the library via '-lfoo', so tell the user that. -- cgit v1.2.3