Merge pull request #205156 from yu-re-ka/musl-runinlinuxvm
runInLinuxVM: fix on musl
This commit is contained in:
commit
0eae5c0532
1 changed files with 7 additions and 5 deletions
|
@ -35,10 +35,12 @@ rec {
|
||||||
mkdir -p $out/lib
|
mkdir -p $out/lib
|
||||||
|
|
||||||
# Copy what we need from Glibc.
|
# Copy what we need from Glibc.
|
||||||
cp -p ${pkgs.stdenv.cc.libc}/lib/ld-linux*.so.? $out/lib
|
cp -p \
|
||||||
cp -p ${pkgs.stdenv.cc.libc}/lib/libc.so.* $out/lib
|
${pkgs.stdenv.cc.libc}/lib/ld-*.so.? \
|
||||||
cp -p ${pkgs.stdenv.cc.libc}/lib/libm.so.* $out/lib
|
${pkgs.stdenv.cc.libc}/lib/libc.so.* \
|
||||||
cp -p ${pkgs.stdenv.cc.libc}/lib/libresolv.so.* $out/lib
|
${pkgs.stdenv.cc.libc}/lib/libm.so.* \
|
||||||
|
${pkgs.stdenv.cc.libc}/lib/libresolv.so.* \
|
||||||
|
$out/lib
|
||||||
|
|
||||||
# Copy BusyBox.
|
# Copy BusyBox.
|
||||||
cp -pd ${pkgs.busybox}/bin/* $out/bin
|
cp -pd ${pkgs.busybox}/bin/* $out/bin
|
||||||
|
@ -49,7 +51,7 @@ rec {
|
||||||
for i in $out/bin/*; do
|
for i in $out/bin/*; do
|
||||||
if [ -f "$i" -a ! -L "$i" ]; then
|
if [ -f "$i" -a ! -L "$i" ]; then
|
||||||
echo "patching $i..."
|
echo "patching $i..."
|
||||||
patchelf --set-interpreter $out/lib/ld-linux*.so.? --set-rpath $out/lib $i || true
|
patchelf --set-interpreter $out/lib/ld-*.so.? --set-rpath $out/lib $i || true
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
''; # */
|
''; # */
|
||||||
|
|
Loading…
Reference in a new issue