Skip to content
This repository was archived by the owner on Jan 26, 2026. It is now read-only.

Commit ed3e53d

Browse files
taliseinnwellnhof
authored andcommitted
meson: Pass LIBXML_STATIC in dependency
1 parent afe8f84 commit ed3e53d

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

meson.build

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,13 @@ sys_windows = windows.contains(host_os)
3939

4040
libxml2_cflags = []
4141
xml_cflags = ''
42+
dep_args = []
4243

4344
if sys_cygwin or sys_windows
4445
if get_option('default_library') == 'static'
4546
xml_cflags = '-DLIBXML_STATIC'
4647
libxml2_cflags += '-DLIBXML_STATIC'
48+
dep_args += '-DLIBXML_STATIC'
4749
endif
4850
endif
4951

@@ -706,7 +708,7 @@ xml_lib = library(
706708
)
707709

708710
dep_inc = include_directories('include')
709-
xml_dep = declare_dependency(include_directories: dep_inc, link_with: xml_lib)
711+
xml_dep = declare_dependency(include_directories: dep_inc, link_with: xml_lib, compile_args: dep_args)
710712

711713
meson.override_dependency('libxml-2.0', xml_dep)
712714

0 commit comments

Comments
 (0)