diff options
author | Joshua Lock <josh@linux.intel.com> | 2008-11-04 22:11:23 +0000 |
---|---|---|
committer | Joshua Lock <josh@linux.intel.com> | 2008-11-04 22:11:23 +0000 |
commit | d422ac1c2503960ab05f390d26c911d83a7d4aa9 (patch) | |
tree | cba6fdd5e7156be9c7643d4896e2eae4f146799d /meta/classes/autotools.bbclass | |
parent | 3937aefbefda15a65436238a6c6f1485419c914b (diff) | |
parent | 51db60903d2ead36077a2297fbfef0c266bc7ca5 (diff) | |
download | openembedded-core-d422ac1c2503960ab05f390d26c911d83a7d4aa9.tar.gz openembedded-core-d422ac1c2503960ab05f390d26c911d83a7d4aa9.tar.bz2 openembedded-core-d422ac1c2503960ab05f390d26c911d83a7d4aa9.tar.xz openembedded-core-d422ac1c2503960ab05f390d26c911d83a7d4aa9.zip |
Merge branch 'master' of ssh://git@git.moblin.org/poky
Diffstat (limited to 'meta/classes/autotools.bbclass')
-rw-r--r-- | meta/classes/autotools.bbclass | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/meta/classes/autotools.bbclass b/meta/classes/autotools.bbclass index 83ab06337..365258f65 100644 --- a/meta/classes/autotools.bbclass +++ b/meta/classes/autotools.bbclass @@ -175,6 +175,26 @@ autotools_stage_dir() { fi } +autotools_stage_libdir() { + from="$1" + to="$2" + + olddir=`pwd` + cd $from + las=$(find . -name \*.la -type f) + cd $olddir + echo "Found la files: $las" + for i in $las + do + sed -e 's/^installed=yes$/installed=no/' \ + -e '/^dependency_libs=/s,${WORKDIR}[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),${STAGING_LIBDIR}/\1,g' \ + -e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${STAGING_LIBDIR},g" \ + -i $from/$i + done + autotools_stage_dir $from $to +} + + autotools_stage_all() { if [ "${INHIBIT_AUTO_STAGE}" = "1" ] then @@ -193,19 +213,11 @@ autotools_stage_all() { fi if [ -d ${STAGE_TEMP}/${libdir} ] then - olddir=`pwd` - cd ${STAGE_TEMP}/${libdir} - las=$(find . -name \*.la -type f) - cd $olddir - echo "Found la files: $las" - for i in $las - do - sed -e 's/^installed=yes$/installed=no/' \ - -e '/^dependency_libs=/s,${WORKDIR}[[:alnum:]/\._+-]*/\([[:alnum:]\._+-]*\),${STAGING_LIBDIR}/\1,g' \ - -e "/^dependency_libs=/s,\([[:space:]']\)${libdir},\1${STAGING_LIBDIR},g" \ - -i ${STAGE_TEMP}/${libdir}/$i - done - autotools_stage_dir ${STAGE_TEMP}/${libdir} ${STAGING_LIBDIR} + autotools_stage_libdir ${STAGE_TEMP}/${libdir} ${STAGING_LIBDIR} + fi + if [ -d ${STAGE_TEMP}/${base_libdir} ] + then + autotools_stage_libdir ${STAGE_TEMP}/${base_libdir} ${STAGING_DIR_HOST}${layout_base_libdir} fi rm -rf ${STAGE_TEMP}/${mandir} || true rm -rf ${STAGE_TEMP}/${infodir} || true |