autotools.bbclass: run sed over .la files to removes various occurences to staging...
authorKoen Kooi <koen@openembedded.org>
Wed, 25 Jul 2007 12:35:19 +0000 (12:35 +0000)
committerKoen Kooi <koen@openembedded.org>
Wed, 25 Jul 2007 12:35:19 +0000 (12:35 +0000)
classes/autotools.bbclass

index 3c55575..fccf2b6 100644 (file)
@@ -139,6 +139,13 @@ autotools_do_configure() {
 
 autotools_do_install() {
        oe_runmake 'DESTDIR=${D}' install
+
+        for i in `find ${D} -name "*.la"` ; do \
+            sed -i -e s:${STAGING_LIBDIR}:${libdir}:g $i
+            sed -i -e s:${D}::g $i
+            sed -i -e 's:-I${WORKDIR}\S*: :g' $i
+            sed -i -e 's:-L${WORKDIR}\S*: :g' $i
+       done
 }
 
 STAGE_TEMP="${WORKDIR}/temp-staging"