Skip to content

Commit

Permalink
Merge pull request #2632 from iKlotho/fix/add-guard-pcre_libs
Browse files Browse the repository at this point in the history
Check if the `pcre_libs` exists
  • Loading branch information
xrmx authored Apr 15, 2024
2 parents 207b91f + 7e5b4e6 commit 353b7dd
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 353b7dd

Please sign in to comment.