From 1bf1cf24f520960d3d10b0b71d665107953dba54 Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Wed, 14 Mar 2018 12:55:29 +0000 Subject: gtk-doc: use --srcdir instead of cd Signed-off-by: Ross Burton --- meta/classes/gtk-doc.bbclass | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta/classes') diff --git a/meta/classes/gtk-doc.bbclass b/meta/classes/gtk-doc.bbclass index 3f731cb93b..b4f6754906 100644 --- a/meta/classes/gtk-doc.bbclass +++ b/meta/classes/gtk-doc.bbclass @@ -32,7 +32,9 @@ inherit python3native pkgconfig qemu DEPENDS_append = "${@' qemu-native' if d.getVar('GTKDOC_ENABLED') == 'True' else ''}" do_configure_prepend () { - ( cd ${S}; gtkdocize --docdir ${GTKDOC_DOCDIR} || true ) + # Need to use ||true as this is only needed if configure.ac both exists + # and uses GTK_DOC_CHECK. + gtkdocize --srcdir ${S} --docdir ${GTKDOC_DOCDIR} || true } do_compile_prepend_class-target () { -- cgit 1.2.3-korg