Building a sysroot¶
LLVM_SRC=~/llvm-project PICOLIBC_SRC=~/picolibc BIN=~/llvm-build/bin \
WIN16_SDK=~/win16-sdk SYSROOT=$PWD/sysroot sh scripts/build-sysroot.sh
MODELS="small" builds one model only. WORK= sets the build directory
(default ./build). NO_CXX=1 skips libc++. The parts run on their own,
in this order, as scripts/build-picolibc.sh, scripts/build-builtins.sh,
scripts/build-libcxx.sh, scripts/build-doslibs.sh (libgraph.a,
libcurses.a, libtui.a and libcxl.a), scripts/build-tvision.sh
(Turbo Vision, when TVISION_SRC= names a magiblot/tvision checkout) and
win16-sdk's build-sysroot.sh (the 16-bit Windows libraries, which runs
the builtins and libc++ scripts here again with OS=win16, as Windows returns
structures through far pointers in every model; WIN16_MODELS= picks its
models). WIN16_SDK= names the win16-sdk checkout (default ../win16-sdk
next to this one), and NO_WIN16=1 skips the Windows libraries.