Advertisement
miamondo

start.sh

Sep 6th, 2021 (edited)
1,719
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 16.83 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # Copyright © 2021 Miamondo <https://miamondo.org/contact/>
  4. # This program is free software: you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation, either version 3 of the License, or
  7. # any later version.
  8.  
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program.  If not, see <http://www.gnu.org/licenses/>
  16.  
  17. # ------------------------------------------------------------------------------
  18.  
  19. :<<'### BLOCK COMMENT'
  20.  
  21. PRÉREQUIS:
  22.  
  23. 1) Avant de lancer le script, créer un utilisateur lfs. Ajoutez-le immédiatement
  24.    au groupe sudo et REDEMARREZ votre ordinateur pour prendre en compte les
  25.    changements:
  26.         sudo groupadd lfs
  27.         sudo useradd -s /bin/bash -g lfs -m -k /dev/null lfs
  28.         sudo usermod -aG sudo lfs
  29.         reboot
  30. 2) RECONNECTEZ-VOUS en tant qu'utilisateur lfs.
  31. 3) Puis, copiez les scripts suivants dans le répertoire /home/lfs:
  32.        start.sh (fichier lanceur)
  33.        wget-list (liste des paquets à télecharger sous forme d'archives)
  34.         md5sums (sommes de contrôle)
  35. 4) Rendez l'utilisateur lfs récursivement propriétaire de son répertoire
  36.   avec la commande suivante:
  37.        sudo chown -R lfs:lfs /home/lfs
  38. 5) Donnez le droit d'exécution au script start.sh
  39.         chmod +x /home/lfs/start.sh
  40. 6) Lancez ce script en tant qu'utilisateur lfs. Le code va s'exécuter de
  41.    la balise n° 1 à la balise n° 2. Il va s'interrompre automatiquement à la
  42.   commande "source /home/lfs/.bash_profile". Relancez le script après avoir
  43.   DECOMMENTÉ la balise ouvrante : <<'END_COMMENT' et la balise fermante
  44.   END_COMMENT qui se trouve juste sous la balise n°2.
  45.   Cela a pour effet de créer un commentaire multilignes qui neutralise l'exécution
  46.    de cette partie du code. Le code va s'exécuter seulement à partir
  47.   de la balise n° 2.
  48. 7) Ne JAMAIS neutraliser les instructions suivantes:
  49.       export MAKEFLAGS=-j`nproc --all`
  50.       cd /mnt/lfs/sources
  51. 8) À partir de la balise n° 2 (décompression des archives et installation des paquets),
  52.   vous pouvez très bien exécuter le script en renvoyant les erreurs de compilation
  53.   dans un fichier errors.txt:
  54.       /home/lfs/start.sh 2> /home/lfs/errors.txt
  55.   Cela facilite grandement le débogage.
  56. 9) Vous pouvez également déplacer les balises END_COMMENT comme bon vous semble et
  57.   exécuter le script en plusieurs fois ou bien exécuter seulement une partie du
  58.   script.
  59.  
  60. ### BLOCK COMMENT
  61.  
  62. #-------------------------------------------------------------------------------
  63.  
  64. # Balise n° 1
  65. : <<'END_COMMENT'
  66. echo "#####################################################################"
  67. echo "#                                                                   #"
  68. echo "# Programme d'installation de Linux From Scratch.                   #"
  69. echo "# Vous devez formater une partition d'au moins 35 GB avec un        #"
  70. echo "# système de fichiers ext4.                                         #"
  71. echo "#                                                                   #"
  72. echo "#####################################################################"
  73.  
  74. echo ""
  75. echo "Quelle partition avez-vous formatée? (/dev/sda1, /dev/sdb2, etc...)"
  76. read partition
  77.  
  78. # Création du répertoire /mnt/lfs
  79. sudo mkdir -p /mnt/lfs
  80.  
  81. # La partition est montée sur le répertoire nouvellement créé
  82. mount $partition /mnt/lfs
  83.  
  84. # Ce répertoire va stocker les archives des paquets à télécharger
  85. mkdir -p /mnt/lfs/sources
  86.  
  87. # Droits d'écriture et sticky sur le répertoire /mnt/lfs/sources
  88. chmod -v a+wt /mnt/lfs/sources
  89.  
  90. # Téléchargement des sources
  91. wget --input-file=`readlink -f wget-list` \
  92.     --continue \
  93.     --directory-prefix=/mnt/lfs/sources
  94.  
  95. cp `readlink -f md5sums` /mnt/lfs/sources
  96. pushd /mnt/lfs/sources
  97. md5sum -c md5sums
  98. popd
  99.  
  100. # Création de différents répertoires nécessaires à la construction.
  101. # Pour la version 32-bit, supprimer lib64
  102. mkdir -pv /mnt/lfs/{etc,var,lib64,tools} /mnt/lfs/usr/{bin,lib,sbin}
  103.  
  104. for i in bin lib sbin
  105. do
  106.   ln -sv usr/$i /mnt/lfs/$i
  107. done
  108.  
  109. # L'utilisateur lfs devient propriétaire de /mnt/lfs
  110. sudo chown -R lfs:lfs /mnt/lfs
  111.  
  112. # Mise en place d'un environnement propre
  113. cat > /home/lfs/.bash_profile << "EOF"
  114. exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash
  115. EOF
  116.  
  117. cat > /home/lfs/.bashrc << "EOF"
  118. set +h
  119. umask 022
  120. LC_ALL=POSIX
  121. LFS_TGT=$(uname -m)-lfs-linux-gnu
  122. PATH=/usr/bin
  123. if [ ! -L /bin ]; then PATH=/bin:$PATH; fi
  124. PATH=/mnt/lfs/tools/bin:$PATH
  125. CONFIG_SITE=/mnt/lfs/usr/share/config.site
  126. export LC_ALL LFS_TGT PATH CONFIG_SITE
  127. EOF
  128.  
  129. # Chargement du nouveau profil de l'utilisateur lfs
  130. source /home/lfs/.bash_profile
  131.  
  132. # Balise n° 2
  133. END_COMMENT
  134.  
  135. # Optimisation du temps de compilation
  136. export MAKEFLAGS=-j`nproc --all`
  137.  
  138. # Déplacement dans le répertoire des archives
  139. cd /mnt/lfs/sources
  140. # CONSTRUCTION D'UNE CHAINE DE COMPILATION CROISÉE
  141. : <<'END_COMMENT'
  142. #--binutils-2.37---------------------------------
  143.  
  144. tar -xf binutils-2.37.tar.*
  145. cd binutils-2.37
  146. mkdir -v build
  147. cd build
  148. ../configure --prefix=/mnt/lfs/tools \
  149.     --with-sysroot=/mnt/lfs \
  150.     --target=$LFS_TGT \
  151.     --disable-nls \
  152.     --disable-werror
  153. make $MAKEFLAGS
  154. make install -j1
  155. cd ../..
  156. sudo rm -r binutils-2.37
  157. echo "binutils-2.37 installé (1ère passe)"
  158. echo 'Pressez la touche "Entrée"'
  159. read
  160.  
  161. #--gcc-11.2.0------------------------------------
  162.  
  163. tar -xf gcc-11.2.0.tar.*
  164. cd gcc-11.2.0
  165. tar -xf ../mpfr-4.1.0.tar.*
  166. mv -v mpfr-4.1.0 mpfr
  167. tar -xf ../gmp-6.2.1.tar.*
  168. mv -v gmp-6.2.1 gmp
  169. tar -xf ../mpc-1.2.1.tar.gz
  170. mv -v mpc-1.2.1 mpc
  171.  
  172. case $(uname -m) in
  173.   x86_64)
  174.     sed -e '/m64=/s/lib64/lib/' \
  175.         -i.orig gcc/config/i386/t-linux64
  176.  ;;
  177. esac
  178.  
  179. mkdir -v build
  180. cd build
  181.  
  182. ../configure --target=$LFS_TGT \
  183.     --prefix=/mnt/lfs/tools \
  184.     --with-glibc-version=2.11 \
  185.     --with-sysroot=/mnt/lfs \
  186.     --with-newlib \
  187.     --without-headers \
  188.     --enable-initfini-array \
  189.     --disable-nls \
  190.     --disable-shared \
  191.     --disable-multilib \
  192.     --disable-decimal-float \
  193.     --disable-threads \
  194.     --disable-libatomic \
  195.     --disable-libgomp \
  196.     --disable-libquadmath \
  197.     --disable-libssp \
  198.     --disable-libvtv \
  199.     --disable-libstdcxx \
  200.     --enable-languages=c,c++
  201.  
  202. make $MAKEFLAGS
  203. make install $MAKEFLAGS
  204. cd ..
  205. cat gcc/limitx.h gcc/glimits.h gcc/limity.h > \
  206.   `dirname $($LFS_TGT-gcc -print-libgcc-file-name)`/install-tools/include/limits.h
  207. cd ..
  208. sudo rm -r gcc-11.2.0
  209. echo "gcc-11.2.0 installé (1ère passe)"
  210. echo 'Pressez la touche "Entrée"'
  211. read
  212.  
  213. #--linux-5.13.12---------------------------------
  214.  
  215. tar -xf linux-5.13.12.tar.*
  216. cd linux-5.13.12
  217. make mrproper
  218. make headers
  219. find usr/include -name '.*' -delete
  220. rm usr/include/Makefile
  221. cp -rv usr/include /mnt/lfs/usr
  222. cd ..
  223. sudo rm -r linux-5.13.12
  224. echo "linux-5.13.12 installé"
  225. echo 'Pressez la touche "Entrée"'
  226. read
  227.  
  228. #--glibc-2.34------------------------------------
  229.  
  230. tar -xf glibc-2.34.tar.*
  231. cd glibc-2.34
  232. case $(uname -m) in
  233.     i?86)   ln -sfv ld-linux.so.2 /mnt/lfs/lib/ld-lsb.so.3
  234.     ;;
  235.     x86_64) ln -sfv ../lib/ld-linux-x86-64.so.2 /mnt/lfs/lib64
  236.             ln -sfv ../lib/ld-linux-x86-64.so.2 /mnt/lfs/lib64/ld-lsb-x86-64.so.3
  237.     ;;
  238. esac
  239. patch -Np1 -i ../glibc-2.34-fhs-1.patch
  240. mkdir -v build
  241. cd build
  242. echo "rootsbindir=/usr/sbin" > configparms
  243. ../configure --prefix=/usr \
  244.     --host=$LFS_TGT \
  245.     --build=$(../scripts/config.guess) \
  246.     --enable-kernel=3.2 \
  247.     --with-headers=/mnt/lfs/usr/include \
  248.     libc_cv_slibdir=/usr/lib
  249. make
  250. make DESTDIR=/mnt/lfs install
  251. sed '/RTLDLIST=/s@/usr@@g' -i /mnt/lfs/usr/bin/ldd
  252. echo 'int main(){}' > dummy.c
  253. $LFS_TGT-gcc dummy.c
  254. readelf -l a.out | grep '/ld-linux'
  255. rm -v dummy.c a.out
  256. /mnt/lfs/tools/libexec/gcc/$LFS_TGT/11.2.0/install-tools/mkheaders
  257. cd ../..
  258. sudo rm -r glibc-2.34
  259. echo "glibc-2.34 installé"
  260. echo 'Pressez la touche "Entrée"'
  261. read
  262.  
  263. #--libstdc++ de gcc-11.2.0------------------------------------
  264.  
  265. tar -xf gcc-11.2.0.tar.*
  266. cd gcc-11.2.0
  267. mkdir -v build
  268. cd build
  269. ../libstdc++-v3/configure \
  270.     --host=$LFS_TGT \
  271.     --build=$(../config.guess) \
  272.     --prefix=/usr \
  273.     --disable-multilib \
  274.     --disable-nls \
  275.     --disable-libstdcxx-pch \
  276.     --with-gxx-include-dir=/tools/$LFS_TGT/include/c++/11.2.0
  277. make
  278. make DESTDIR=/mnt/lfs install
  279. cd ../..
  280. sudo rm -r gcc-11.2.0
  281. echo "libstdc++ installé"
  282. echo "FIN DE LA CONSTRUCTION D'UNE CHAINE DE COMPILATION CROISÉE"
  283. echo "DÉBUT DE LA COMPILATION CROISÉE DES OUTILS TEMPORAIRES"
  284. read
  285.  
  286. #--COMPILATION CROISÉE DES OUTILS TEMPORAIRES
  287. #--m4-1.4.19-------------------------------------
  288.  
  289. tar -xf m4-1.4.19.tar.*
  290. cd m4-1.4.19
  291. ./configure --prefix=/usr \
  292.     --host=$LFS_TGT \
  293.     --build=$(build-aux/config.guess)
  294. make $MAKEFLAGS
  295. make DESTDIR=/mnt/lfs install $MAKEFLAGS
  296. cd ..
  297. sudo rm -r m4-1.4.19
  298. echo "m4-1.4.19 installé"
  299. echo 'Pressez la touche "Entrée"'
  300. read
  301.  
  302. #--ncurses-6.2-----------------------------------
  303.  
  304. tar -xf ncurses-6.2.tar.gz
  305. cd ncurses-6.2
  306. sed -i s/mawk// configure
  307. mkdir build
  308. pushd build
  309. ../configure
  310. make -C include
  311. make -C progs tic
  312. popd
  313. ./configure --prefix=/usr        \
  314.     --host=$LFS_TGT              \
  315.     --build=$(./config.guess)    \
  316.     --mandir=/usr/share/man      \
  317.     --with-manpage-format=normal \
  318.     --with-shared                \
  319.     --without-debug              \
  320.     --without-ada                \
  321.     --without-normal             \
  322.     --enable-widec
  323. make $MAKEFLAGS
  324. make DESTDIR=/mnt/lfs TIC_PATH=$(pwd)/build/progs/tic install
  325. echo "INPUT(-lncursesw)" > /mnt/lfs/usr/lib/libncurses.so
  326. cd ..
  327. sudo rm -r ncurses-6.2
  328. echo "ncurses-6.2 installé"
  329. echo 'Pressez la touche "Entrée"'
  330. read
  331.  
  332. #--bash-5.1.8------------------------------------
  333.  
  334. tar -xf bash-5.1.8.tar.gz
  335. cd bash-5.1.8
  336. ./configure --prefix=/usr \
  337.     --build=$(support/config.guess) \
  338.     --host=$LFS_TGT                 \
  339.     --without-bash-malloc
  340. make $MAKEFLAGS
  341. make DESTDIR=/mnt/lfs install
  342. ln -sv bash /mnt/lfs/bin/sh
  343. cd ..
  344. sudo rm -r bash-5.1.8
  345. echo "bash-5.1.8 installé"
  346. echo 'Pressez la touche "Entrée"'
  347. read
  348.  
  349. #--coreutils-8.32--------------------------------
  350.  
  351. tar -xf coreutils-8.32.tar.*
  352. cd coreutils-8.32
  353. ./configure --prefix=/usr                     \
  354.             --host=$LFS_TGT                   \
  355.             --build=$(build-aux/config.guess) \
  356.             --enable-install-program=hostname \
  357.             --enable-no-install-program=kill,uptime
  358. make $MAKEFLAGS
  359. make DESTDIR=/mnt/lfs install
  360. mv -v /mnt/lfs/usr/bin/chroot /mnt/lfs/usr/sbin
  361. mkdir -pv /mnt/lfs/usr/share/man/man8
  362. mv -v /mnt/lfs/usr/share/man/man1/chroot.1 /mnt/lfs/usr/share/man/man8/chroot.8
  363. sed -i 's/"1"/"8"/' /mnt/lfs/usr/share/man/man8/chroot.8
  364. cd ..
  365. sudo rm -r coreutils-8.32
  366. echo "coreutils-8.32 installé"
  367. echo 'Pressez la touche "Entrée"'
  368. read
  369.  
  370. #--diffutils-3.8---------------------------------
  371.  
  372. tar -xf diffutils-3.8.tar.*
  373. cd diffutils-3.8
  374. ./configure --prefix=/usr --host=$LFS_TGT
  375. make $MAKEFLAGS
  376. make DESTDIR=/mnt/lfs install
  377. cd ..
  378. sudo rm -r diffutils-3.8
  379. echo "diffutils-3.8 installé"
  380. echo 'Pressez la touche "Entrée"'
  381. read
  382.  
  383. #--file-5.40-------------------------------------
  384.  
  385. tar -xf file-5.40.tar.gz
  386. cd file-5.40
  387. mkdir build
  388. pushd build
  389. ../configure --disable-bzlib \
  390.     --disable-libseccomp \
  391.     --disable-xzlib \
  392.     --disable-zlib
  393. make $MAKEFLAGS
  394. popd
  395. ./configure --prefix=/usr \
  396.     --host=$LFS_TGT \
  397.     --build=$(./config.guess)
  398. make FILE_COMPILE=$(pwd)/build/src/file
  399. make DESTDIR=/mnt/lfs install
  400. cd ..
  401. sudo rm -r file-5.40
  402. echo "file-5.40 installé"
  403. echo 'Pressez la touche "Entrée"'
  404. read
  405. END_COMMENT
  406. #--findutils-4.8.0-------------------------------
  407.  
  408. tar -xf findutils-4.8.0.tar.*
  409. cd findutils-4.8.0
  410. ./configure --prefix=/usr \
  411.     --localstatedir=/var/lib/locate \
  412.     --host=$LFS_TGT                 \
  413.     --build=$(./build-aux/config.guess)
  414. make $MAKEFLAGS
  415. make DESTDIR=/mnt/lfs install
  416. cd ..
  417. sudo rm -r findutils-4.8.0
  418. echo "findutils-4.8.0 installé"
  419. echo 'Pressez la touche "Entrée"'
  420. read
  421.  
  422. #--gawk-5.1.0------------------------------------
  423.  
  424. tar -xf gawk-5.1.0.tar.*
  425. cd gawk-5.1.0
  426. sed -i 's/extras//' Makefile.in
  427. ./configure --prefix=/usr \
  428.     --host=$LFS_TGT \
  429.     --build=$(./config.guess)
  430. make $MAKEFLAGS
  431. make DESTDIR=/mnt/lfs install
  432. cd ..
  433. sudo rm -r gawk-5.1.0
  434. echo "gawk-5.1.0 installé"
  435. echo 'Pressez la touche "Entrée"'
  436. read
  437.  
  438. #--grep-3.7--------------------------------------
  439.  
  440. tar -xf grep-3.7.tar.*
  441. cd grep-3.7
  442. ./configure --prefix=/usr \
  443.     --host=$LFS_TGT
  444. make $MAKEFLAGS
  445. make DESTDIR=/mnt/lfs install
  446. cd ..
  447. sudo rm -r grep-3.7
  448. echo "grep-3.7 installé"
  449. echo 'Pressez la touche "Entrée"'
  450. read
  451.  
  452. #--gzip-1.10-------------------------------------
  453.  
  454. tar -xf gzip-1.10.tar.*
  455. cd gzip-1.10
  456. ./configure --prefix=/usr
  457.     --host=$LFS_TGT
  458. make $MAKEFLAGS
  459. make DESTDIR=/mnt/lfs install
  460. cd ..
  461. sudo rm -r gzip-1.10
  462. echo "gzip-1.10 installé"
  463. echo 'Pressez la touche "Entrée"'
  464. read
  465.  
  466. #--make-4.3--------------------------------------
  467.  
  468. tar -xf make-4.3.tar.*
  469. cd make-4.3
  470. ./configure --prefix=/usr \
  471.     --without-guile \
  472.     --host=$LFS_TGT \
  473.     --build=$(build-aux/config.guess)
  474. make $MAKEFLAGS
  475. make DESTDIR=/mnt/lfs install
  476. cd ..
  477. sudo rm -r make-4.3
  478. echo "make-4.3 installé"
  479. echo 'Pressez la touche "Entrée"'
  480. read
  481.  
  482. #--patch-2.7.6-----------------------------------
  483.  
  484. tar -xf patch-2.7.6.tar.*
  485. cd patch-2.7.6
  486. ./configure --prefix=/usr \
  487.     --host=$LFS_TGT \
  488.     --build=$(build-aux/config.guess)
  489. make $MAKEFLAGS
  490. make DESTDIR=/mnt/lfs install
  491. cd ..
  492. sudo rm -r patch-2.7.6
  493. echo "patch-2.7.6 installé"
  494. echo 'Pressez la touche "Entrée"'
  495. read
  496.  
  497. #--sed-4.8---------------------------------------
  498.  
  499. tar -xf sed-4.8.tar.*
  500. cd sed-4.8
  501. ./configure --prefix=/usr \
  502.     --host=$LFS_TGT
  503. make $MAKEFLAGS
  504. make DESTDIR=/mnt/lfs install
  505. cd ..
  506. sudo rm -r sed-4.8
  507. echo "sed-4.8 installé"
  508. echo 'Pressez la touche "Entrée"'
  509. read
  510.  
  511.  
  512. #--tar-1.34--------------------------------------
  513.  
  514. tar -xf tar-1.34.tar.*
  515. cd tar-1.34
  516. ./configure --prefix=/usr \
  517.     --host=$LFS_TGT \
  518.     --build=$(build-aux/config.guess)
  519. make $MAKEFLAGS
  520. make DESTDIR=/mnt/lfs install
  521. cd ..
  522. sudo rm -r tar-1.34
  523. echo "tar-1.34 installé"
  524. echo 'Pressez la touche "Entrée"'
  525. read
  526.  
  527. #--xz-5.2.5--------------------------------------
  528.  
  529. tar -xf xz-5.2.5.tar.*
  530. cd xz-5.2.5
  531. ./configure --prefix=/usr \
  532.     --host=$LFS_TGT \
  533.     --build=$(build-aux/config.guess) \
  534.     --disable-static \
  535.     --docdir=/usr/share/doc/xz-5.2.5
  536. make $MAKEFLAGS
  537. make DESTDIR=/mnt/lfs install
  538. cd ..
  539. sudo rm -r xz-5.2.5
  540. echo "xz-5.2.5 installé"
  541. echo 'Pressez la touche "Entrée"'
  542. read
  543.  
  544. #--binutils-2.37 — Passe 2-----------------------
  545.  
  546. tar -xf binutils-2.37.tar.*
  547. cd binutils-2.37
  548. mkdir -v build
  549. cd build
  550. ../configure \
  551.     --prefix=/usr \
  552.     --build=$(../config.guess) \
  553.     --host=$LFS_TGT \
  554.     --disable-nls \
  555.     --enable-shared \
  556.     --disable-werror \
  557.     --enable-64-bit-bfd
  558. make $MAKEFLAGS
  559. make DESTDIR=/mnt/lfs install -j1
  560. install -vm755 libctf/.libs/libctf.so.0.0.0 /mnt/lfs/usr/lib
  561. cd ../..
  562. sudo rm -r binutils-2.37
  563. echo "binutils-2.37 installé"
  564. echo 'Pressez la touche "Entrée"'
  565. read
  566.  
  567. #--gcc-11.2.0 — Passe 2--------------------------
  568.  
  569. tar -xf gcc-11.2.0.tar.*
  570. cd gcc-11.2.0
  571. tar -xf ../mpfr-4.1.0.tar.xz
  572. mv -v mpfr-4.1.0 mpfr
  573. tar -xf ../gmp-6.2.1.tar.xz
  574. mv -v gmp-6.2.1 gmp
  575. tar -xf ../mpc-1.2.1.tar.gz
  576. mv -v mpc-1.2.1 mpc
  577. case $(uname -m) in
  578.   x86_64)
  579.     sed -e '/m64=/s/lib64/lib/' -i.orig gcc/config/i386/t-linux64
  580.   ;;
  581. esac
  582. mkdir -v build
  583. cd build
  584. mkdir -pv $LFS_TGT/libgcc
  585. ln -s ../../../libgcc/gthr-posix.h $LFS_TGT/libgcc/gthr-default.h
  586. ../configure                                       \
  587.     --build=$(../config.guess)                     \
  588.     --host=$LFS_TGT                                \
  589.     --prefix=/usr                                  \
  590.     CC_FOR_TARGET=$LFS_TGT-gcc                     \
  591.     --with-build-sysroot=/mnt/lfs                  \
  592.     --enable-initfini-array                        \
  593.     --disable-nls                                  \
  594.     --disable-multilib                             \
  595.     --disable-decimal-float                        \
  596.     --disable-libatomic                            \
  597.     --disable-libgomp                              \
  598.     --disable-libquadmath                          \
  599.     --disable-libssp                               \
  600.     --disable-libvtv                               \
  601.     --disable-libstdcxx                            \
  602.     --enable-languages=c,c++
  603. make $MAKEFLAGS
  604. make DESTDIR=/mnt/lfs install
  605. ln -sv gcc /mnt/lfs/usr/bin/cc
  606. cd ../..
  607. sudo rm -r gcc-11.2.0
  608. echo "gcc-11.2.0 installé"
  609. echo 'Pressez la touche "Entrée"'
  610. read
  611.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement