6.6. bheaded 0.0.1-mk2
bheaded provides BSD compatibility headers needed by BSD-origin userland code when building on a musl-based Linux target.
Input assumption:
bheaded-0.0.1-mk2.tar.gz is already present in LBI_SOURCES from the chapter 4 source staging step.
Licenses:
- The Berkeley Artistic License
Dependencies:
- musl (libc)
bheaded is a BSD compatibility header package for non-BSD systems. we need it to provide BSD-style sys headers (cdefs.h, queue.h, tree.h) for BSD-origin userland code in this chapter.
Extract and Enter the Source Tree
cd "$LBI_SOURCES"
tar -xf bheaded-0.0.1-mk2.tar.gz
cd bheaded-0.0.1-mk2
Fetch Header Sources
make $LWI_MAKE_FLAGS main
Install bheaded
make DESTDIR="$LBI_ROOT" install
Command Explanations
make $LWI_MAKE_FLAGS main: Fetches and prepares the BSD compatibility header set using the book's shared make parallelism setting.make DESTDIR="$LBI_ROOT" install: Installs those headers into the target tree rather than the host system.