Skip to content

Commit

Permalink
LX01: fix glibc not found
Browse files Browse the repository at this point in the history
  • Loading branch information
duhow committed Dec 24, 2024
1 parent cddd0de commit b9d3e8d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions scripts/96_compact_libs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,29 @@ if [ "$LIBC_NEW" = "$LIBC_OLD" ]; then
exit
fi

if [ "${MODEL}" = "lx01" ] ; then
echo "[!] Fixing libs for ${MODEL}"
# NOTE: this cannot be done in build package process
# as generates issues with gcc builds of multiple programs (glibc -> gcc, openssl)

FILE="libgcc_s.so"
LIB_TARGET="$ROOTFS/usr/lib/${FILE}"
rm -vf ${LIB_TARGET}
ln -svf ${FILE}.1 ${LIB_TARGET}

# this file is old, the new one is in /lib
FILE="libuuid.so.1.3.0"
LIB_TARGET="$ROOTFS/usr/lib/${FILE}"
rm -vf ${LIB_TARGET}
ln -svf ../../lib/${FILE} ${LIB_TARGET}

for FILE in libc libpthread ; do
LIB_TARGET="$ROOTFS/usr/lib/${FILE}.so"
rm -vf ${LIB_TARGET}
ln -svf ../../lib/${FILE}-${LIBC_NEW}.so ${LIB_TARGET}
done
fi

if [ -z "$LIBC_OLD" ]; then
echo "[*] libc not found (musl?), skipping."
exit
Expand Down

0 comments on commit b9d3e8d

Please sign in to comment.