update for rootfs_usable

This commit is contained in:
wt
2024-12-05 16:56:58 +07:00
parent 156e149ecb
commit eb538f5ff4
19 changed files with 1536 additions and 25 deletions
+2 -2
View File
@@ -11,12 +11,12 @@ zlib() {
tar -xvf $root/downloads/zlib-1.3.1.tar.gz
check $? "Extract zlib"
cd zlib-1.3.1
CC=${CROSS_COMPILE}gcc ./configure --prefix=/usr --shared
CC=${CROSS_COMPILE}-gcc ./configure --prefix=/usr --shared
check $? "Configure zlib"
make $makeflags
check $? "Build zlib"
make DESTDIR=$rootfspath install
rm -rv $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/lib/{pkgconfig,libz.a}
${CROSS_COMPILE}strip $rootfspath/usr/lib/libz.so.1.3.1
${CROSS_COMPILE}-strip $rootfspath/usr/lib/libz.so.1.3.1
check $? "Installing to rootfs zlib"
}