From d9a2902aa647b4ca69324d6ff1b8ae7f98e8413e Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Tue, 10 Sep 2013 09:33:19 +0200 Subject: [PATCH] musl: improved to create a symlink from ld-musl-$musl_arch.so to ldd if the dynlinker was started as "ldd" it will print DSO information --- base/musl/musl.conf | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/base/musl/musl.conf b/base/musl/musl.conf index 6957a420f..d8317626b 100644 --- a/base/musl/musl.conf +++ b/base/musl/musl.conf @@ -28,6 +28,13 @@ fi if [ "$SDECFG_LIBC" == "musl" ]; then # disable gcc wrapper script var_append extraconfopt ' ' "--disable-gcc-wrapper" + + if ! atstage toolchain; then + # create a symlink from ld-musl-$musl_arch.so to ldd + # if the dynlinker was started as "ldd" it will print + # DSO information + hook_add postinstall 5 'ln -vsf $root/lib/ld-musl-$musl_arch.so.1 $root$bindir/ldd' + fi fi # always install the headers even if already present in the sandbox