PlainOsBuilder/stages/4-host-compiler.sh

11 lines
234 B
Bash
Executable File

#!/bin/sh
echo "* Build host compiler" >&2
cd tcc
./configure --extra-cflags="-Os -s" --prefix=$RTFS/ --elfinterp=/lib/libc.so --config-musl --config-bcheck=no --enable-static --cc=$RTFS/bin/tcc
make -j $(nproc)
make install
cd ..