autotools: also stage python files in ${prefix}/lib
authorPhil Blundell <philb@gnu.org>
Sun, 19 Oct 2008 19:35:37 +0000 (20:35 +0100)
committerPhil Blundell <philb@gnu.org>
Sun, 19 Oct 2008 19:35:37 +0000 (20:35 +0100)
classes/autotools.bbclass

index b4e78f8..82b5311 100644 (file)
@@ -190,6 +190,10 @@ autotools_stage_all() {
                autotools_stage_dir ${STAGE_TEMP}/${base_bindir} ${STAGING_DIR_HOST}${layout_base_bindir}
                autotools_stage_dir ${STAGE_TEMP}/${base_sbindir} ${STAGING_DIR_HOST}${layout_base_sbindir}
                autotools_stage_dir ${STAGE_TEMP}/${libexecdir} ${STAGING_DIR_HOST}${layout_libexecdir}
+               if [ "${prefix}/lib" != "${libdir}" ]; then
+                       # python puts its files in here, make sure they are staged as well
+                       autotools_stage_dir ${STAGE_TEMP}/${prefix}/lib ${STAGING_DIR_HOST}${layout_prefix}/lib
+               fi
        fi
        if [ -d ${STAGE_TEMP}/${libdir} ]
        then