mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
Merge branch 'pcre' into 'main'
pcre subproject fixes: Allow fallback & static build See merge request GNOME/glib!3470
This commit is contained in:
commit
57d2f161e6
@ -2050,7 +2050,9 @@ else
|
||||
endif
|
||||
|
||||
pcre2_req = '>=10.32'
|
||||
pcre2 = dependency('libpcre2-8', version: pcre2_req, required: false, allow_fallback: false)
|
||||
|
||||
# Pick up pcre from the system, or if "--force-fallback-for libpcre2-8" was specified
|
||||
pcre2 = dependency('libpcre2-8', version: pcre2_req, required: false, default_options: ['default_library=static'])
|
||||
if not pcre2.found()
|
||||
if cc.get_id() == 'msvc' or cc.get_id() == 'clang-cl'
|
||||
# MSVC: Search for the PCRE2 library by the configuration, which corresponds
|
||||
@ -2066,7 +2068,7 @@ endif
|
||||
|
||||
# Try again with the fallback
|
||||
if not pcre2.found()
|
||||
pcre2 = dependency('libpcre2-8', version: pcre2_req, allow_fallback: true)
|
||||
pcre2 = dependency('libpcre2-8', version: pcre2_req, allow_fallback: true, default_options: ['default_library=static'])
|
||||
assert(pcre2.type_name() == 'internal')
|
||||
# static flags are automatically enabled by the subproject if it's built
|
||||
# with default_library=static
|
||||
|
Loading…
Reference in New Issue
Block a user