From ed3e53de0e979488b14b63c712eb4f54fe9ed4d1 Mon Sep 17 00:00:00 2001 From: Andrew Potter Date: Thu, 6 Jun 2024 10:50:19 -0700 Subject: [PATCH] meson: Pass LIBXML_STATIC in dependency --- meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 43d93343e..39831b8a4 100644 --- a/meson.build +++ b/meson.build @@ -39,11 +39,13 @@ sys_windows = windows.contains(host_os) libxml2_cflags = [] xml_cflags = '' +dep_args = [] if sys_cygwin or sys_windows if get_option('default_library') == 'static' xml_cflags = '-DLIBXML_STATIC' libxml2_cflags += '-DLIBXML_STATIC' + dep_args += '-DLIBXML_STATIC' endif endif @@ -706,7 +708,7 @@ xml_lib = library( ) dep_inc = include_directories('include') -xml_dep = declare_dependency(include_directories: dep_inc, link_with: xml_lib) +xml_dep = declare_dependency(include_directories: dep_inc, link_with: xml_lib, compile_args: dep_args) meson.override_dependency('libxml-2.0', xml_dep) -- GitLab