diff options
author | Ryan Lucia <rylucia@microsoft.com> | 2019-10-05 16:09:58 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2019-11-07 22:20:56 +0200 |
commit | 8987a3967563a32ece52eb0d3a62a1702f4c6d87 (patch) | |
tree | 1a94ccc9d3e83320dc74dfe11f7e1a767f5dc57c /mesonbuild/modules | |
parent | 6e708208ddc870fefde92b22c031575c33bb243b (diff) | |
download | meson-8987a3967563a32ece52eb0d3a62a1702f4c6d87.zip meson-8987a3967563a32ece52eb0d3a62a1702f4c6d87.tar.gz meson-8987a3967563a32ece52eb0d3a62a1702f4c6d87.tar.bz2 |
pkgconfig: only check import_filename for shared libraries
Diffstat (limited to 'mesonbuild/modules')
-rw-r--r-- | mesonbuild/modules/pkgconfig.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py index 043df29..a37dd4f 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. |