pkgconfig: only check import_filename for shared libraries

pull/6148/head
Ryan Lucia 6 years ago committed by Jussi Pakkanen
parent 6e708208dd
commit 8987a39675
  1. 2
      mesonbuild/modules/pkgconfig.py

@ -231,7 +231,7 @@ class PkgConfigModule(ExtensionModule):
return l.name[3:] return l.name[3:]
# If the library is imported via an import library which is always # If the library is imported via an import library which is always
# named after the target name, '-lfoo' is correct. # named after the target name, '-lfoo' is correct.
if l.import_filename: if isinstance(l, build.SharedLibrary) and l.import_filename:
return l.name return l.name
# In other cases, we can't guarantee that the compiler will be able to # In other cases, we can't guarantee that the compiler will be able to
# find the library via '-lfoo', so tell the user that. # find the library via '-lfoo', so tell the user that.

Loading…
Cancel
Save