compile crt1 and crtglue before building freetype

This commit is contained in:
nakst 2022-01-16 14:06:35 +00:00
parent 48aa9b261d
commit 970b64715d
1 changed files with 9 additions and 0 deletions

View File

@ -159,6 +159,15 @@ void BuildAPIDependencies() {
ParseDependencies("bin/dependency_files/api_header.d", "API Header", false);
}
FILE *f = fopen("bin/Object Files/crt1.o", "rb");
if (f) {
fclose(f);
} else {
CallSystem(TOOLCHAIN_PREFIX "-gcc -c desktop/crt1.c -o bin/Object\\ Files/crt1.o");
CallSystem(TOOLCHAIN_PREFIX "-gcc -c desktop/crtglue.c -o bin/Object\\ Files/crtglue.o");
}
CallSystem("ports/musl/build.sh " TARGET_NAME);
CallSystem("ports/freetype/build.sh " TARGET_NAME);
CallSystem("ports/harfbuzz/build.sh " TARGET_NAME);