BLFS has more information regarding compilation, /usr vs /usr/local, boot scripts, etc. at https://linuxfromscratch.org/blfs/view/systemd/introduction/important.html. Unlike this book, this would be a chapter in BLFS. A lot of that information has been omitted as this book is more linear and doesn't follow how BLFS follows. However, we will cover some bases here.
Denne boken, som er tilgjengelig på nett, er i konstant strøm av oppdateringer, og oppdateres omtrent like ofte som BLFS Git/SVN-versjonen. Selv om det ikke finnes en synlig nettversjon av den stabile utgivelsen, kan du enten gjengi den selv ved å følge https://github.com/glfs-book/slfs, eller du kan laste ned en release.
This version of this book is meant for Systemd LFS systems.
There are two main OpenGL vendors on linux: Mesa and libglvnd. BLFS installs Mesa as the vendor. GLFS installs libglvnd as the vendor. This book mainly sees OpenGL in general and most packages work just fine. However, some are known to require fixes, either simple or too elaborate. They require extra resources to test, which the team behind this book does not have. So Mesa's OpenGL implementations are not supported. As a starting point, you can see SLFS 12.4 and see how to go about fixing what is broken. See GLFS: About OpenGL for more information about why support for Mesa's OpenGL implementations have been dropped from both this book and GLFS.
Building software on SLFS is identical to how it's done in the LFS
books. It goes without saying firstmost that you should have
MAKEFLAGS
set to save yourself a lot of
time. This is useful for the make utility to use the amount of
threads that you both want and have.
export MAKEFLAGS='-jx'
Replace x
with the amount of threads
you have. You can check the amount of threads you have with:
grep processor /proc/cpuinfo
Make sure that you have enough RAM for your system! A general method is having 2.5G per thread that is thrown at make. For instance, if you want to use 6 threads, multiply 6 by 2.5 (which is 15), then make sure you have 15G of RAM. If you don't have that RAM, try and limit the threads you throw at make.