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.
pull/4261/head
Ross Burton 6 years ago
parent 1efcca637b
commit 47d115f6a8
  1. 2
      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'))

Loading…
Cancel
Save