add link time optimalisation flag to makefile

This commit is contained in:
2025-07-23 11:38:06 +02:00
parent 6c2f51929b
commit ac3be7e8ab

View File

@@ -15,7 +15,7 @@ DEBUG ?= 0
CC ?= cc CC ?= cc
LD ?= ld LD ?= ld
CFLAGS += -c -std=gnu99 -Wall -Wextra -Wpedantic -Ilib -MMD -MP CFLAGS += -c -std=gnu99 -Wall -Wextra -Wpedantic -Ilib -MMD -MP
LDFLAGS += -lm LDFLAGS += -flto -lm
MARCH ?= $(shell uname -m) MARCH ?= $(shell uname -m)
KERNEL ?= $(shell uname -s | tr '[:upper:]' '[:lower:]') KERNEL ?= $(shell uname -s | tr '[:upper:]' '[:lower:]')