[build] fix SCons pkg-config err handling (fixes #3066)

(thx elchenberg)

x-ref:
  "OSError in SConstruct on Alpine Linux"
  https://redmine.lighttpd.net/issues/3066
This commit is contained in:
Glenn Strauss 2021-02-06 13:14:32 -05:00
parent 4a600dabd5
commit 165600498b
1 changed files with 2 additions and 0 deletions

View File

@ -140,6 +140,8 @@ class Autoconf:
try:
self.conf.env.ParseConfig(*args, **kw)
return True
except OSError:
return False
except Exception as e:
print(e.message, file=sys.stderr)
return False