mirror of
https://github.com/JannisHeydemann/BoredOS.git
synced 2026-05-30 10:26:59 +00:00
userland: replace legacy cc with native TCC and vendor submodule
This commit is contained in:
10
src/userland/cli/third_party/tcc/build_libtcc1.sh
vendored
Normal file
10
src/userland/cli/third_party/tcc/build_libtcc1.sh
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
CC=x86_64-elf-gcc
|
||||
AR=x86_64-elf-ar
|
||||
CFLAGS="-O2 -m64 -march=x86-64 -fno-stack-protector -ffreestanding -nostdlib -I. -I./include -I../../../sdk/include"
|
||||
|
||||
echo "Building libtcc1.a..."
|
||||
$CC $CFLAGS -c lib/libtcc1.c -o libtcc1.o
|
||||
$AR rcs libtcc1.a libtcc1.o
|
||||
rm libtcc1.o
|
||||
echo "Done."
|
||||
Reference in New Issue
Block a user