diff options
author | Jeremy Laine <jeremy.laine@m4x.org> | 2008-05-12 13:45:26 +0000 |
---|---|---|
committer | Jeremy Laine <jeremy.laine@m4x.org> | 2008-05-12 13:45:26 +0000 |
commit | bf8862b4aea28a42a0dcdfdc618c2ff5ceb11cf9 (patch) | |
tree | 096d51859dff81a964f7e9575b4bc6c50f04434b | |
parent | 4eb5cc652629a0d77c666d171c66a6e3c8de4c86 (diff) | |
parent | 496b9be8d169b09ae7fae0ea80f67c5f2f2c9acc (diff) |
merge of '07638b4b82998b594ffb4858eaca86494159cda0'
and '1019be7986524fea8a63da6199f04430a64cd018'
-rw-r--r-- | classes/autotools.bbclass | 26 |
1 files changed, 9 insertions, 17 deletions
diff --git a/classes/autotools.bbclass b/classes/autotools.bbclass index 010f4ab620..7137876a93 100644 --- a/classes/autotools.bbclass +++ b/classes/autotools.bbclass @@ -58,7 +58,6 @@ oe_runconf () { --oldincludedir=${oldincludedir} \ --infodir=${infodir} \ --mandir=${mandir} \ - --enable-mainainer-mode \ ${EXTRA_OECONF} \ $@" oenote "Running $cfgcmd..." @@ -172,7 +171,7 @@ autotools_stage_dir() { rmdir "$from" 2> /dev/null || true if [ -d "$from" ]; then mkdir -p "$to" - cp -fpPR -t "$to" "$from"/* + cp -fpPR "$from"/* "$to" fi } @@ -199,21 +198,14 @@ autotools_stage_all() { las=$(find . -name \*.la -type f) cd $olddir echo "Found la files: $las" - if [ -n "$las" ]; then - # If there are .la files then libtool was used in the - # build, so install them with magic mangling. - for i in $las - do - dir=$(dirname $i) - echo "oe_libinstall -C ${STAGE_TEMP}/${libdir}/${dir} -so $(basename $i .la) ${STAGING_LIBDIR}/${dir}" - oe_libinstall -C ${STAGE_TEMP}/${libdir}/${dir} -so $(basename $i .la) ${STAGING_LIBDIR}/${dir} - done - else - # Otherwise libtool wasn't used, and lib/ can be copied - # directly. - autotools_stage_dir ${STAGE_TEMP}/${libdir} ${STAGING_LIBDIR} - fi - + 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} fi # Ok, this is nasty. pkgconfig.bbclass is usually used to install .pc files, # however some packages rely on the presence of .pc files to enable/disable |