summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2018-10-12 18:12:47 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2018-10-12 20:58:53 +0530
commit9f405de60fbcf3cf52e61add5c8691778d6920cd (patch)
tree631ef4d14bd223fb138bdd0049a085c61a7a80a3
parentad26d15133c88394362acb797ce072302051a899 (diff)
downloadpango-9f405de60fbcf3cf52e61add5c8691778d6920cd.tar.gz
meson: Don't run help2man when cross building
-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',