glib2: use internal pcre2
[feed/packages.git] / libs / glib2 / patches / 010-pcre.patch
index ead8f7f2335466f42b7ec0d0507f3c64a65c6729..b61341cdf2534a17d49753be864b4406c11a06a5 100644 (file)
@@ -1,8 +1,11 @@
 --- a/glib/meson.build
 +++ b/glib/meson.build
-@@ -402,6 +402,7 @@ pcre2_static_args = []
+@@ -400,8 +400,9 @@ endif
  
- if use_pcre2_static_flag
+ pcre2_static_args = []
+-if use_pcre2_static_flag
++if pcre2.type_name() == 'internal'
    pcre2_static_args = ['-DPCRE2_STATIC']
 +  pcre2 = pcre2.as_link_whole()
  endif