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