summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-17 11:33:49 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-17 14:35:16 +0100
commit641a80d760afd2c05804f2f7aaff98a2e18ad5d6 (patch)
tree3d0c2d956de1e3f13b05260f47abd9cc59e4c67d /meta
parent912e8d567262f5c3f67fd290a72813c1f9f9d86b (diff)
downloadpoky-641a80d760afd2c05804f2f7aaff98a2e18ad5d6.tar.gz
autotools: Remove .la files if rebuilding non out of tree software
(From OE-Core rev: bcf83bb604906361db98003127b90c422e822322) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/autotools.bbclass14
1 files changed, 10 insertions, 4 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass
index 4e4ef986bf..883eb06e26 100644
--- a/meta/classes/autotools.bbclass
+++ b/meta/classes/autotools.bbclass
@@ -108,10 +108,16 @@ CONFIGURESTAMPFILE = "${WORKDIR}/configure.sstate"
108 108
109autotools_preconfigure() { 109autotools_preconfigure() {
110 if [ -n "${CONFIGURESTAMPFILE}" -a -e "${CONFIGURESTAMPFILE}" ]; then 110 if [ -n "${CONFIGURESTAMPFILE}" -a -e "${CONFIGURESTAMPFILE}" ]; then
111 if [ "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" -a "${S}" != "${B}" ]; then 111 if [ "`cat ${CONFIGURESTAMPFILE}`" != "${BB_TASKHASH}" ]; then
112 echo "Previously configured separate build directory detected, cleaning ${B}" 112 if [ "${S}" != "${B}" ]; then
113 rm -rf ${B} 113 echo "Previously configured separate build directory detected, cleaning ${B}"
114 mkdir ${B} 114 rm -rf ${B}
115 mkdir ${B}
116 else
117 # At least remove the .la files since automake won't automatically
118 # regenerate them even if CFLAGS/LDFLAGS are different
119 cd ${S}; find ${S} -name \*.la -delete
120 fi
115 fi 121 fi
116 fi 122 fi
117} 123}