PlainOsBuilder/stages/4-host-compiler.sh
2024-05-31 18:07:40 +03:00

11 lines
303 B
Bash

#!/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 --crtprefix=/lib --libpaths=/lib:/lib/tcc --sysincludepaths=/include
make -j $(nproc)
make install
cd ..