diff options
author | Koen Kooi <koen@openembedded.org> | 2007-07-25 12:35:19 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-07-25 12:35:19 +0000 |
commit | 905009f453a941085816827efbf12f048f18cd54 (patch) | |
tree | 54115493a8ef5ec3a52fb64ec79f583458d917d6 | |
parent | 8833df14d493957fa9eebb923eea3ebdd49bab4c (diff) |
autotools.bbclass: run sed over .la files to removes various occurences to staging, workdir and ${D}
-rw-r--r-- | classes/autotools.bbclass | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass index 3c555751da..fccf2b6d80 100644 --- a/classes/autotools.bbclass +++ b/classes/autotools.bbclass @@ -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" |