summaryrefslogtreecommitdiff
path: root/openembedded/classes/base.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2005-12-12 14:41:23 +0000
committerRichard Purdie <richard@openedhand.com>2005-12-12 14:41:23 +0000
commitf0702a22fe1e95075d0159ddeafb453ab4c87ebc (patch)
treed2eed3877e77b9fc71c6a05ba652f2f406b28465 /openembedded/classes/base.bbclass
parent9e7c699670036999a2c4c238d910534689739aa3 (diff)
downloadopenembedded-core-f0702a22fe1e95075d0159ddeafb453ab4c87ebc.tar.gz
openembedded-core-f0702a22fe1e95075d0159ddeafb453ab4c87ebc.tar.bz2
openembedded-core-f0702a22fe1e95075d0159ddeafb453ab4c87ebc.tar.xz
openembedded-core-f0702a22fe1e95075d0159ddeafb453ab4c87ebc.zip
oe/classes updates from Openembedded
git-svn-id: https://svn.o-hand.com/repos/poky@187 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/classes/base.bbclass')
-rw-r--r--openembedded/classes/base.bbclass15
1 files changed, 14 insertions, 1 deletions
diff --git a/openembedded/classes/base.bbclass b/openembedded/classes/base.bbclass
index 18d51a02e..c5359b20f 100644
--- a/openembedded/classes/base.bbclass
+++ b/openembedded/classes/base.bbclass
@@ -124,6 +124,7 @@ oe_libinstall() {
silent=""
require_static=""
require_shared=""
+ staging_install=""
while [ "$#" -gt 0 ]; do
case "$1" in
-C)
@@ -155,6 +156,10 @@ oe_libinstall() {
if [ -z "$destpath" ]; then
oefatal "oe_libinstall: no destination path specified"
fi
+ if echo "$destpath/" | egrep '^${STAGING_LIBDIR}/' >/dev/null
+ then
+ staging_install=1
+ fi
__runcmd () {
if [ -z "$silent" ]; then
@@ -188,7 +193,15 @@ oe_libinstall() {
fi
dotlai=$libname.lai
if [ -f "$dotlai" -a -n "$libtool" ]; then
- __runcmd install -m 0644 $dotlai $destpath/$libname.la
+ if test -n "$staging_install"
+ then
+ # stop libtool using the final directory name for libraries
+ # in staging:
+ __runcmd rm -f $destpath/$libname.la
+ __runcmd sed -e 's/^installed=yes$/installed=no/' $dotlai >$destpath/$libname.la
+ else
+ __runcmd install -m 0644 $dotlai $destpath/$libname.la
+ fi
fi
for name in $library_names; do