libxcrypt and improve libncurses

This commit is contained in:
Denis Benato 2024-12-11 03:15:17 +01:00
parent 4df2bea407
commit dfc62ae7f8

View file

@ -618,6 +618,53 @@ if [ ! -f "$STEPS_DIR/zlib" ]; then
touch "$STEPS_DIR/zlib" touch "$STEPS_DIR/zlib"
fi fi
# build libxcrypt
if [ ! -f "$STEPS_DIR/libxcrypt" ]; then
if [ ! -d "$LFS_BUILD/libxcrypt" ]; then
tar -xf "$BASE_DIR/sources/libxcrypt-4.4.36.tar.xz"
mv "libxcrypt-4.4.36" "$LFS_BUILD/libxcrypt"
fi
cd "$LFS_BUILD/libxcrypt"
mkdir -vp build-$LFS_TGT
cd build-$LFS_TGT
"../configure" \
--prefix=/usr \
--disable-static \
--enable-hashes=strong,glibc \
--with-sysroot=${LFS} \
--host=${LFS_TGT} \
--build=${BUILD_MACHINE_TRIPLET} \
--enable-obsolete-api=no \
--disable-failure-tokens \
--cache-file=config.cache
make -j 32
make -j 32 DESTDIR=$LFS install
#cd ..
#mkdir -vp build-compat-$LFS_TGT
#cd build-compat-$LFS_TGT
#"../configure" \
# --prefix=/usr \
# --disable-static \
# --enable-hashes=strong,glibc \
# --with-sysroot=${LFS} \
# --host=${LFS_TGT} \
# --build=${BUILD_MACHINE_TRIPLET} \
# --enable-obsolete-api=glibc \
# --disable-failure-tokens \
# --cache-file=config.cache
# DO NOT MAKE: check archlinux package!
cd "$BASE_DIR"
rm -rf "$LFS_BUILD/libxcrypt"
touch "$STEPS_DIR/libxcrypt"
fi
# build ncurses # build ncurses
# TODO: fix symlink!!! # TODO: fix symlink!!!
if [ ! -f "$STEPS_DIR/ncurses" ]; then if [ ! -f "$STEPS_DIR/ncurses" ]; then
@ -641,6 +688,7 @@ if [ ! -f "$STEPS_DIR/ncurses" ]; then
--sbindir=/usr/bin \ --sbindir=/usr/bin \
--disable-stripping \ --disable-stripping \
--with-shared \ --with-shared \
--without-normal \
--host=${LFS_TGT} \ --host=${LFS_TGT} \
--build=${BUILD_MACHINE_TRIPLET} \ --build=${BUILD_MACHINE_TRIPLET} \
--without-debug \ --without-debug \
@ -651,7 +699,8 @@ if [ ! -f "$STEPS_DIR/ncurses" ]; then
--disable-root-access \ --disable-root-access \
--without-ada \ --without-ada \
--enable-overwrite \ --enable-overwrite \
--with-build-cc=gcc --with-build-cc=gcc \
--with-pkg-config-libdir=/usr/lib/pkgconfig
make -j 32 make -j 32