From 7e5b4e65805afb69944041fd00b3d7a667a2b013 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 f9bc612b7..032bd884f 100644 --- a/uwsgiconfig.py +++ b/uwsgiconfig.py @@ -1117,11 +1117,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