Commit Diff
- Commit:
41a02e31da797206529ed55ab14333524a6f10f1- From:
- Alisdair MacLeod <git@alisdairmacleod.co.uk>
- Date:
- Message:
- Enable -Os optimization for smaller binary output The default optimization level (-O0) leaves dead code and misses size-reducing transformations. -Os is preferred over -O2 as it avoids aggressive inlining and loop unrolling that inflate the binary, which matters for a statically linked CGI deployment. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Actions:
- Patch | Tree
--- Makefile +++ Makefile @@ -1,5 +1,5 @@ CC ?= cc -CFLAGS += -Wall -Wextra -pedantic -std=c23 -Werror -I/usr/local/include +CFLAGS += -Wall -Wextra -pedantic -std=c23 -Werror -Os -I/usr/local/include LDFLAGS += -L/usr/local/lib -lsqlite3 -lpthread -lm LDFLAGS_STATIC ?= -static
