summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-05 18:49:03 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-11-09 10:21:19 +0000
commitcb4b12c9b94845f24751b4febc5d548150b70b57 (patch)
tree4574a82dcfef4d7fb458550f8a0eb9c2dfc9236c /meta
parente6cbda6419beb7b09a82325507f492f4f95e8776 (diff)
downloadpoky-cb4b12c9b94845f24751b4febc5d548150b70b57.tar.gz
perl: Enable rebuilds to account for configuration changes
If configure/compile was rerun for perl, changes such as libdir changes were not being picked up. To fix this we we add "make clean" functionality, if the makefile is present. We also in this case need to delete the .so file, else some perl modules try and load the target arch libraries leading to build failures. I'd love it if there were a better way to do this and am open to better proposals but this was the best I could find, not being a perl expert. (From OE-Core rev: 3b8adee2756085df47b90357eed4c20ee98c7cd1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/perl/perl_5.20.0.bb10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl_5.20.0.bb b/meta/recipes-devtools/perl/perl_5.20.0.bb
index ec01765ea3..ec4d2140e7 100644
--- a/meta/recipes-devtools/perl/perl_5.20.0.bb
+++ b/meta/recipes-devtools/perl/perl_5.20.0.bb
@@ -117,6 +117,16 @@ do_configure() {
117 # Make hostperl in build directory be the native perl 117 # Make hostperl in build directory be the native perl
118 ln -sf ${HOSTPERL} hostperl 118 ln -sf ${HOSTPERL} hostperl
119 119
120 if [ -n "${CONFIGURESTAMPFILE}" -a -e "${CONFIGURESTAMPFILE}" ]; then
121 if [ "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a -e Makefile ]; then
122 ${MAKE} clean
123 fi
124 find ${S} -name *.so -delete
125 fi
126 if [ -n "${CONFIGURESTAMPFILE}" ]; then
127 echo ${BB_TASKHASH} > ${CONFIGURESTAMPFILE}
128 fi
129
120 # Do our work in the cross subdir 130 # Do our work in the cross subdir
121 cd Cross 131 cd Cross
122 132