commit f059f37e3e065a29fe630c9808a5ed059328dc5f parent 8fa9fbc7d8c4a4af9f22ec32e5bfcf97d89b3cc3 Author: bsandro <email@bsandro.tech> Date: Sun, 21 Dec 2025 08:37:00 +0200 set cli build mode for size, not debug Diffstat:
| M | cli/Makefile | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/cli/Makefile b/cli/Makefile @@ -3,8 +3,8 @@ SRC=$(wildcard *.c) DEPS:=$(wildcard ../include/*.h) OBJ:=$(SRC:.c=.o) LIBS:=libwebp libwebpdemux -CFLAGS=-Og -g -std=c99 -Werror -Wall -Wextra -I. ${shell pkg-config --cflags $(LIBS)} -LDFLAGS=-lc ${shell pkg-config --libs $(LIBS)} +CFLAGS=-Os -std=c99 -ffast-math -fno-stack-protector -fomit-frame-pointer -fwrapv -ffunction-sections -fdata-sections -fno-asynchronous-unwind-tables -fno-unwind-tables -fmerge-all-constants -fno-ident -march=native -Wall -Wextra -I. ${shell pkg-config --cflags $(LIBS)} +LDFLAGS=-lc -Wl,--gc-sections ${shell pkg-config --libs $(LIBS)} all: $(NAME)