From 9f405de60fbcf3cf52e61add5c8691778d6920cd Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Fri, 12 Oct 2018 18:12:47 +0530 Subject: meson: Don't run help2man when cross building --- utils/meson.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/utils/meson.build b/utils/meson.build index 3adcc32f..510d1b7e 100644 --- a/utils/meson.build +++ b/utils/meson.build @@ -40,7 +40,9 @@ pango_view = executable('pango-view', pango_view_sources, ]) help2man = find_program('help2man', required: false) -if help2man.found() +# help2man has to run pango-view to generate the man page, which it can't do if +# we're cross building. We also can't tell help2man what exe wrapper to use. +if help2man.found() and not meson.is_cross_build() help2man_opts = [ '--no-info', '--section=1', -- cgit v1.2.1