Use LLVM linker, Dockerfile now works without GCC
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m16s

This commit is contained in:
2026-03-07 10:41:35 +01:00
parent bc5b04d809
commit 955dbc7614
7 changed files with 19 additions and 33 deletions

View File

@@ -17,18 +17,11 @@ endif
cflags += -isystem ../include
ldflags += -ffreestanding \
-nostdlib \
-fno-builtin \
-fuse-ld=lld \
-static
ifeq ($(buildtype),debug)
ldflags += -g
endif
ldflags += --nostdlib \
--static
ifeq ($(buildtype),release)
ldflags += -Wl,--gc-sections \
-Wl,--strip-all \
-flto
ldflags += --gc-sections \
--strip-all \
-O3
endif