aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndre McCurdy <armccurdy@gmail.com>2017-11-30 12:20:40 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-12-10 22:41:40 +0000
commit3d4c1e0d94175f8c782e94725d365e5e1d1178c1 (patch)
tree3369abefa70b002cfd091cb39339c0d674b8eda6
parent21479f1a9e2b77c014d02ddaf2a9a2ee8057b625 (diff)
downloadopenembedded-core-contrib-3d4c1e0d94175f8c782e94725d365e5e1d1178c1.tar.gz
openembedded-core-contrib-3d4c1e0d94175f8c782e94725d365e5e1d1178c1.tar.bz2
openembedded-core-contrib-3d4c1e0d94175f8c782e94725d365e5e1d1178c1.zip
musl: prevent errors if do_install is run more than once
Signed-off-by: Andre McCurdy <armccurdy@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
-rw-r--r--meta/recipes-core/musl/musl_git.bb3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
index 932c9a27a00..db26b4fef28 100644
--- a/meta/recipes-core/musl/musl_git.bb
+++ b/meta/recipes-core/musl/musl_git.bb
@@ -57,10 +57,11 @@ do_install() {
oe_runmake install DESTDIR='${D}'
install -d ${D}${bindir}
+ rm -f ${D}${bindir}/ldd
lnr ${D}${libdir}/libc.so ${D}${bindir}/ldd
for l in crypt dl m pthread resolv rt util xnet
do
- ln -s libc.so ${D}${libdir}/lib$l.so
+ ln -sf libc.so ${D}${libdir}/lib$l.so
done
}