From 47d115f6a87654e393b2e8c5ccf485e862250860 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 25 Sep 2018 12:15:27 +0100 Subject: [PATCH] gnome: add missing cflags/ldflags to gtk-doc when cross-compiling When cross-compiling the gtk-doc calls were missing the configured c_args and c_link_args. --- mesonbuild/modules/gnome.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesonbuild/modules/gnome.py b/mesonbuild/modules/gnome.py index 5128de44b..a7452a473 100644 --- a/mesonbuild/modules/gnome.py +++ b/mesonbuild/modules/gnome.py @@ -1012,6 +1012,8 @@ This will become a hard error in the future.''') ldflags.update(external_ldflags) if state.environment.is_cross_build(): + cflags.update(state.environment.cross_info.config["properties"].get('c_args', "")) + ldflags.update(state.environment.cross_info.config["properties"].get('c_link_args', "")) compiler = state.environment.coredata.cross_compilers.get('c') else: cflags.update(state.environment.coredata.get_external_args('c'))