Fix ldd on 64bit executables using ld-linux-x86-64.so.2

This commit is contained in:
Joe Groocock 2017-09-09 00:18:24 +01:00
parent 85b7333432
commit 30d6914bb5
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -58,6 +58,7 @@ RUN curl -fL https://ftp.gnu.org/gnu/glibc/glibc-${GLIBC_VER}.tar.xz \
RUN strip -s out/sbin/ldconfig && \
# Patch ldd to use sh not bash
sed -i '1s/.*/#!\/bin\/sh/' out/usr/bin/ldd && \
sed -i 's/lib64/lib/g' out/usr/bin/ldd && \
# Copy glibc libs & loader
cp -d out/usr/lib/*.so* "${PREFIX}/usr/lib" && \
cp -d out/usr/bin/ldd "${PREFIX}/bin" && \