forked from security/hakurei
internal/rosa: link libc ldd
Musl appears to implement this behaviour but does not install the symlink by default. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -32,6 +32,7 @@ func (t Toolchain) NewMusl(attr *MuslAttr) pkg.Artifact {
|
||||
mkdir -p /work/system/bin
|
||||
COMPAT_LINKER_NAME="ld-musl-$(uname -m).so.1"
|
||||
ln -vs ../lib/libc.so /work/system/bin/linker
|
||||
ln -vs ../lib/libc.so /work/system/bin/ldd
|
||||
ln -vs libc.so "/work/system/lib/${COMPAT_LINKER_NAME}"
|
||||
rm -v "/work/lib/${COMPAT_LINKER_NAME}"
|
||||
rmdir -v /work/lib
|
||||
|
||||
Reference in New Issue
Block a user