summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author0x221E <0x221E@0xinfinity.dev>2026-05-30 01:08:34 +0200
committer0x221E <0x221E@0xinfinity.dev>2026-05-30 01:08:34 +0200
commit5a64041d04369619a196df99c86bfa9d177c3613 (patch)
tree321fa2625949b849e48ed13438b494b011b443fe
parentc8b68f23b388badf075c911f8a287f019b0d9951 (diff)
downloadcross-gcc-master.tar.gz
stage0-glibc: install /lib64, ldconfig, sln to /usr/libHEADmaster
The glibc flag is tricky, appears to be not well documented. The correct flag is taken from LFS book + void-packages srcpkg/glibc.
-rwxr-xr-xsetup6
1 files changed, 5 insertions, 1 deletions
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