From 55a885a2063df18e097ea4fd41ee8fc091fb0c2a Mon Sep 17 00:00:00 2001 From: TolaMironcenko Date: Wed, 15 Oct 2025 13:47:12 +0700 Subject: [PATCH] added optimization for size --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index a7a64a4..e1bf876 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ CC = gcc -CFLAGS = -Wall -g -std=gnu2x -DMG_TLS=MG_TLS_OPENSSL -LDFLAGS = +CFLAGS = -Wall -g -std=gnu2x -DMG_TLS=MG_TLS_OPENSSL -ffunction-sections -fdata-sections +LDFLAGS = -Wl,--gc-sections LIBS = -lpthread -lcrypto -lssl -lsqlite3 INCLUDES = -I./src/lib -I./src SRCS = $(wildcard src/*/*.c src/*.c)