dependencies/pkgconfig: Log pkg-config exceptions
This means that when either cflags or libs lookup fails, this will be logged always in the log, leading to much easier to debug messages like: Called `/usr/local/bin/pkg-config --cflags gnutls` -> 1 pkg-config error with 'gnutls': Could not generate cargs for gnutls: Package nettle was not found in the pkg-config search path. Perhaps you should add the directory containing `nettle.pc' to the PKG_CONFIG_PATH environment variable Package 'nettle', required by 'gnutls', not found Run-time dependency gnutls found: NO (tried pkgconfig)
This commit is contained in:
parent
273d6e75ea
commit
2fe75ab31d
|
@ -657,6 +657,7 @@ class PkgConfigDependency(ExternalDependency):
|
|||
# Fetch the libraries and library paths needed for using this
|
||||
self._set_libs()
|
||||
except DependencyException as e:
|
||||
mlog.debug("pkg-config error with '%s': %s" % (name, e))
|
||||
if self.required:
|
||||
raise
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue