From 60b06f23a120b5ef9700363faab82044fda73c8f Mon Sep 17 00:00:00 2001 From: iKlotho Date: Mon, 15 Apr 2024 19:08:32 +0300 Subject: [PATCH] Check if the pcre_libs exists --- uwsgiconfig.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/uwsgiconfig.py b/uwsgiconfig.py index 21da32235..f32078bbb 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -1101,11 +1101,12 @@ def get_gcll(self): print("*** libpcre headers unavailable. uWSGI build is interrupted. You have to install pcre development package or disable pcre") sys.exit(1) - self.libs.append(pcre_libs) - self.cflags.append(pcre_cflags) - self.gcc_list.append('core/regexp') - self.cflags.append(pcre_define) - has_pcre = True + if pcre_libs: + self.libs.append(pcre_libs) + self.cflags.append(pcre_cflags) + self.gcc_list.append('core/regexp') + self.cflags.append(pcre_define) + has_pcre = True if has_pcre: report['pcre'] = True