mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 13:46:49 +00:00
glibc: enable programs, remove those we don't want
This commit is contained in:
parent
16fdbb7aba
commit
7200b153f7
@ -111,13 +111,28 @@ echo "libdir=/usr/lib" >> configparms
|
|||||||
echo "slibdir=/usr/lib" >> configparms
|
echo "slibdir=/usr/lib" >> configparms
|
||||||
echo "sbindir=/usr/bin" >> configparms
|
echo "sbindir=/usr/bin" >> configparms
|
||||||
echo "rootsbindir=/usr/bin" >> configparms
|
echo "rootsbindir=/usr/bin" >> configparms
|
||||||
echo "build-programs=no" >> configparms
|
echo "build-programs=yes" >> configparms
|
||||||
|
|
||||||
|
GLIBC_INCLUDE_BIN="getent ldd locale"
|
||||||
}
|
}
|
||||||
|
|
||||||
post_makeinstall_target() {
|
post_makeinstall_target() {
|
||||||
# we are linking against ld.so, so symlink
|
# we are linking against ld.so, so symlink
|
||||||
ln -sf $(basename $INSTALL/usr/lib/ld-*.so) $INSTALL/usr/lib/ld.so
|
ln -sf $(basename $INSTALL/usr/lib/ld-*.so) $INSTALL/usr/lib/ld.so
|
||||||
|
|
||||||
|
# cleanup
|
||||||
|
# remove any programs we don't want/need, keeping only those we want
|
||||||
|
for f in $(find $INSTALL/usr/bin -type f); do
|
||||||
|
fb="$(basename "${f}")"
|
||||||
|
for ib in $GLIBC_INCLUDE_BIN; do
|
||||||
|
if [ "${ib}" == "${fb}" ]; then
|
||||||
|
fb=
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
[ -n "${fb}" ] && rm -rf ${f}
|
||||||
|
done
|
||||||
|
|
||||||
rm -rf $INSTALL/usr/lib/audit
|
rm -rf $INSTALL/usr/lib/audit
|
||||||
rm -rf $INSTALL/usr/lib/glibc
|
rm -rf $INSTALL/usr/lib/glibc
|
||||||
rm -rf $INSTALL/usr/lib/libc_pic
|
rm -rf $INSTALL/usr/lib/libc_pic
|
||||||
|
Loading…
x
Reference in New Issue
Block a user