summaryrefslogtreecommitdiff
path: root/utils/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'utils/meson.build')
-rw-r--r--utils/meson.build4
1 files changed, 3 insertions, 1 deletions
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',