23 lines
806 B
Diff
23 lines
806 B
Diff
diff --git a/meson.build b/meson.build
|
|
index 614563588b2..b7f0330dae3 100644
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -204,7 +204,7 @@ endif
|
|
|
|
pcre2_dep_opt = get_option('use_sys_pcre2')
|
|
pcre2_dep = disabler()
|
|
-if (pcre2_dep_opt.enabled() or pcre2_dep_opt.auto()) and not meson.is_cross_build()
|
|
+if (pcre2_dep_opt.enabled() or pcre2_dep_opt.auto())
|
|
pcre2_dep = dependency('libpcre2-8', required: false, static: false)
|
|
if not pcre2_dep.found()
|
|
pcre2_dep = cc.find_library('pcre2', required: true, static: true)
|
|
@@ -214,7 +214,7 @@ else
|
|
endif
|
|
|
|
if meson.is_cross_build()
|
|
- pcre2_native_dep = dependency('pcre2_cross_native', required: true, static: true, native: true)
|
|
+ pcre2_native_dep = dependency('libpcre2-8', required: true, static: false, native: true)
|
|
endif
|
|
|
|
# handle magic library
|