From e3f26569e012bc961bc355d25c731303856fec04 Mon Sep 17 00:00:00 2001 From: Alejandro Sior Date: Sun, 7 Aug 2022 14:29:10 +0200 Subject: cook: check if output of pkgconfig is not empty string --- cook.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cook.py') diff --git a/cook.py b/cook.py index 8917145..c42de23 100755 --- a/cook.py +++ b/cook.py @@ -532,6 +532,8 @@ def CDependency(name): try: inc = subproc([pkgconfig.path, "--cflags", name]).strip().decode("utf-8") lib = subproc([pkgconfig.path, "--libs", name]).strip().decode("utf-8") + inc = inc if inc != "" else [] + lib = lib if lib != "" else [] module.mkdep(shared_ld_args = lib, shared_cc_args = inc) return module except subprocess.CalledProcessError: -- cgit v1.2.3