Skip to content

Coreutils

Prerequisite for Coreutils

Get source:

git clone git://git.sv.gnu.org/coreutils

Get necessary dependencies:

sudo apt install automake autoconf flex bison autopoint gperf texinfo gettext
./bootstrap

Compile Coreutils with LLVM

Take the wllvm wrapper as an example:

./configure CC=wllvm CXX=wllvm++
make -j$(nproc)

Or to enable debug into, add -g to compile flags:

./configure CC=wllvm CXX=wllvm++ CFLAGS="-g"
make -j$(nproc)