PlainOsBuilder/stages/4-host-compiler.sh

11 lines
303 B
Bash
Raw Normal View History

2023-12-20 18:18:01 +00:00
#!/bin/sh
2023-12-26 10:36:10 +00:00
echo "* Build host compiler" >&2
2023-12-20 18:18:01 +00:00
cd tcc
2024-05-31 15:07:40 +00:00
./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
2023-12-20 18:18:01 +00:00
make -j $(nproc)
make install
cd ..