From 970b64715d016ce8efedf7bd62ad0a129e9cc44d Mon Sep 17 00:00:00 2001 From: nakst <> Date: Sun, 16 Jan 2022 14:06:35 +0000 Subject: [PATCH] compile crt1 and crtglue before building freetype --- util/build.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/util/build.c b/util/build.c index e5a2c44..8496207 100644 --- a/util/build.c +++ b/util/build.c @@ -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);