aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/pkgconfig.py
diff options
context:
space:
mode:
authorRyan Lucia <rylucia@microsoft.com>2019-10-05 16:09:58 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2019-11-07 22:20:56 +0200
commit8987a3967563a32ece52eb0d3a62a1702f4c6d87 (patch)
tree1a94ccc9d3e83320dc74dfe11f7e1a767f5dc57c /mesonbuild/modules/pkgconfig.py
parent6e708208ddc870fefde92b22c031575c33bb243b (diff)
downloadmeson-8987a3967563a32ece52eb0d3a62a1702f4c6d87.zip
meson-8987a3967563a32ece52eb0d3a62a1702f4c6d87.tar.gz
meson-8987a3967563a32ece52eb0d3a62a1702f4c6d87.tar.bz2
pkgconfig: only check import_filename for shared libraries
Diffstat (limited to 'mesonbuild/modules/pkgconfig.py')
-rw-r--r--mesonbuild/modules/pkgconfig.py2
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.