diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-10-30 00:39:07 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-11-13 12:15:22 +0000 |
commit | cbcad726fe019e2825229fd075298050796beaf2 (patch) | |
tree | bdb9dcdfd9b61468cf1e438452e388046602c17a /meta | |
parent | 99cdb59aed345dd616f511686d0b6444830b83a1 (diff) | |
download | poky-cbcad726fe019e2825229fd075298050796beaf2.tar.gz |
autotools.bbclass: Convert .la file mangling to package preprocessing hook
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/autotools.bbclass | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 8aa035191e..509c6f4eae 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass | |||
@@ -140,8 +140,12 @@ autotools_do_configure() { | |||
140 | 140 | ||
141 | autotools_do_install() { | 141 | autotools_do_install() { |
142 | oe_runmake 'DESTDIR=${D}' install | 142 | oe_runmake 'DESTDIR=${D}' install |
143 | } | ||
144 | |||
145 | PACKAGE_PREPROCESS_FUNCS += "autotools_prepackage_lamangler" | ||
143 | 146 | ||
144 | for i in `find ${D} -name "*.la"` ; do \ | 147 | autotools_prepackage_lamangler () { |
148 | for i in `find ${PKGD} -name "*.la"` ; do \ | ||
145 | sed -i -e s:${STAGING_LIBDIR}:${libdir}:g $i | 149 | sed -i -e s:${STAGING_LIBDIR}:${libdir}:g $i |
146 | sed -i -e s:${D}::g $i | 150 | sed -i -e s:${D}::g $i |
147 | sed -i -e 's:-I${WORKDIR}\S*: :g' $i | 151 | sed -i -e 's:-I${WORKDIR}\S*: :g' $i |