注意:
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
User:Invakid404/CLFS
CLFS with musl
This page covers the steps of getting a working CLFS "temporary environment" with musl instead of glibc and latest everything.
Setting up the environment (Chapter 2)
Instead of creating a partition, we'll build everything in a directory in our home. Let's assign it to a variable called `CLFS` and create it:
user $ export CLFS=$HOME/clfs user $ mkdir -v "${CLFS}" mkdir: created directory '/home/invakid404/clfs'
We'll also need to create three subdirectories in our CLFS directory:
- cross-tools: this is where the cross compiler will go
- tools: this is where the so-called "temporary system" will go
- sources: this is where we'll download and build all packages
user $ mkdir -v "${CLFS}"/cross-tools mkdir: created directory '/home/invakid404/clfs/cross-tools' user $ mkdir -v "${CLFS}"/tools mkdir: created directory '/home/invakid404/clfs/tools' user $ mkdir -v "${CLFS}"/sources mkdir: created directory '/home/invakid404/clfs/sources'