Skip to content

Commit

Permalink
Check if the pcre_libs exists
Browse files Browse the repository at this point in the history
  • Loading branch information
iKlotho committed Apr 15, 2024
1 parent 207b91f commit 7e5b4e6
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions uwsgiconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7e5b4e6

Please sign in to comment.