Files
mop3/generic/flags.mk
kamkow1 955dbc7614
All checks were successful
Build documentation / build-and-deploy (push) Successful in 2m16s
Use LLVM linker, Dockerfile now works without GCC
2026-03-07 10:41:35 +01:00

28 lines
443 B
Makefile

cflags += -nostdinc \
-nostdlib \
-ffreestanding \
-fno-builtin \
-std=c11 \
-pedantic \
-Wall \
-Wextra
ifeq ($(buildtype),debug)
cflags += -O0 -g
endif
ifeq ($(buildtype),release)
cflags += -ffunction-sections -fdata-sections -Oz
endif
cflags += -isystem ../include
ldflags += --nostdlib \
--static
ifeq ($(buildtype),release)
ldflags += --gc-sections \
--strip-all \
-O3
endif