Error for Libs in package_config function

Without specifying a custom install directory string, get_custom_install_dir() returns True. So for the `Libs` entry I was getting this:

  Libs: -L${prefix}/True -lfoo

Now it behaves as expected:

  Libs: -L${libdir} -lfoo
pull/2515/head
getzze 7 years ago committed by Jussi Pakkanen
parent 3fcf4ad272
commit 6ce42e2ec5
  1. 6
      mesonbuild/modules/pkgconfig.py

@ -80,9 +80,11 @@ class PkgConfigModule(ExtensionModule):
yield l
else:
install_dir = l.get_custom_install_dir()[0]
if install_dir:
if install_dir is False:
continue
if isinstance(install_dir, str):
yield '-L${prefix}/%s ' % install_dir
else:
else: # install_dir is True
yield '-L${libdir}'
lname = self._get_lname(l, msg, pcfile)
# If using a custom suffix, the compiler may not be able to

Loading…
Cancel
Save