i hate this

This commit is contained in:
kevadesu 2024-11-03 21:12:23 +01:00
parent 0229c8a48a
commit 612df959e2
2 changed files with 56 additions and 7 deletions

View file

@ -30,21 +30,27 @@ EOF
source ~/.bash_profile source ~/.bash_profile
} }
function eal.notification.buildconf() {echo "I: -- The installer is now configuring the build options --" && sleep 0.2}
function eal.notification.compiling() {echo "I: -- The installer is now compiling the package $EIR_PKG --" && sleep 0.2}
function eal.notification.installing() {echo "I: -- The installer is now installing the package $EIR_PKG --" && sleep 0.2}
function eal.notification.extracting() {echo "I: -- The installer is now extracting the necessary archives for $EIR_PKG --" && sleep 0.2}
function eal.setup.toolchain() { function eal.setup.toolchain() {
echo -e "I: The detected system triplet is $(/usr/bin/gcc -dumpmachine)." echo -e "I: The detected system triplet is $(/usr/bin/gcc -dumpmachine)."
export LFS_TGT=$(/usr/bin/gcc -dumpmachine) export LFS_TGT=$(/usr/bin/gcc -dumpmachine)
echo echo
} }
function eal.install.cross-binutils() { function eal.install.cross-toolchain() {
cd $LFS/sources/ cd $LFS/sources/
echo -e "I: -- The installer is now extracting binutils --" EIR_PKG=binutils
eal.notification.extracting
sleep 0.5 sleep 0.5
tar -xvf $LFS/sources/binutils-2.43.1.tar.xz tar -xvf $LFS/sources/binutils-2.43.1.tar.xz
cd $LFS/sources/binutils-2.43.1/ cd $LFS/sources/binutils-2.43.1/
mkdir -v build mkdir -v build
cd build cd build
echo -e "I: -- The installer is now configuring build options --" eal.notification.buildconf
sleep 0.5 sleep 0.5
../configure --prefix=$LFS/tools \ ../configure --prefix=$LFS/tools \
--with-sysroot=$LFS \ --with-sysroot=$LFS \
@ -54,10 +60,53 @@ function eal.install.cross-binutils() {
--disable-werror \ --disable-werror \
--enable-new-dtags \ --enable-new-dtags \
--enable-default-hash-style=gnu --enable-default-hash-style=gnu
echo -e "I: -- The installer is now compiling the package --" eal.notification.compiling
make make
echo -e "I: -- The installer is now installing the package --" eal.notification.installing
make install make install
eal.notification.extracting
pushd $LFS/sources/
tar -xvf gcc-14.2.0.tar.xz
mv -v gcc-14.2.0 gcc
pushd $LFS/sources/gcc/
tar -xf ../mpfr-4.2.1.tar.xz
mv -v mpfr-4.2.1 mpfr
tar -xf ../gmp-6.3.0.tar.xz
mv -v gmp-6.3.0 gmp
tar -xf ../mpc-1.3.1.tar.gz
mv -v mpc-1.3.1 mpc
case $(uname -m) in
x86_64)
sed -e '/m64=/s/lib64/lib/' \
-i.orig gcc/config/i386/t-linux64
;;
esac
mkdir -v build
cd build
eal.notification.buildconf
../configure \
--target=$LFS_TGT \
--prefix=$LFS/tools \
--with-glibc-version=2.40 \
--with-sysroot=$LFS \
--with-newlib \
--without-headers \
--enable-default-pie \
--enable-default-ssp \
--disable-nls \
--disable-shared \
--disable-multilib \
--disable-threads \
--disable-libatomic \
--disable-libgomp \
--disable-libquadmath \
--disable-libssp \
--disable-libvtv \
--disable-libstdcxx \
--enable-languages=c,c++
eal.notification.compiling
make
eal.notification.installing
make install
} }
main main

View file

@ -2,7 +2,7 @@
TylkoLinux, an LFS system TylkoLinux, an LFS system
## Status ## Status
LFS v12.2-systemd book chapter: 4.2. LFS v12.2-systemd book chapter: 5.4.
## To do ## To do
```md ```md