PlainOsBuilder/stages/2-cross-compiler.sh

12 lines
227 B
Bash
Raw Normal View History

2023-12-20 18:18:01 +00:00
#!/bin/sh
2024-01-12 08:36:21 +00:00
echo "* Build cross compiler" >&2
2023-12-20 18:18:01 +00:00
cd tcc
make clean
./configure --extra-cflags="-Os -s" --prefix=$RTFS/ --elfinterp=/lib/libc.so --config-musl --config-bcheck=no --enable-static
make -j $(nproc)
make install
cd ..