From 5a64041d04369619a196df99c86bfa9d177c3613 Mon Sep 17 00:00:00 2001 From: 0x221E Date: Sat, 30 May 2026 01:08:34 +0200 Subject: stage0-glibc: install /lib64, ldconfig, sln to /usr/lib The glibc flag is tricky, appears to be not well documented. The correct flag is taken from LFS book + void-packages srcpkg/glibc. --- setup | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup b/setup index 3790d22..e6edfd8 100755 --- a/setup +++ b/setup @@ -207,12 +207,16 @@ function glibc_configure { mkdir ${GLIBC_CONF_DIR} cd ${GLIBC_CONF_DIR} + + echo "rootsbindir=/usr/sbin" > configparms CC=${compiler} ../glibc-${GLIBC_VERSION}/configure\ --host=x86_64-${DISTRO_SPEC}-linux-gnu\ --build=x86_64-linux-gnu\ --with-headers="${HEADERS_LOC}"\ --disable-werror\ + --disable-ncsd\ + libc_cv_slibdir=/usr/lib\ "${conf_flags[@]}" cd "${currdir}" @@ -263,7 +267,7 @@ function stage0_gcc { conf_flags=( --prefix=/tools - --with-sysroot="/home/cool/opt/cross/" + --with-sysroot="${SYSROOT_LOC}" --with-glibc-version=2.43 --with-newlib --without-headers -- cgit v1.2.3