From 5fbbea368612dcf59cbcedc44c2901e4327ae99e Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 25 Mar 2024 01:16:41 +0400 Subject: [PATCH] Let's add -flto to do a link time optimisation. It saves a few bytes. --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 1c3a318..84bcd16 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ SRCs := $(wildcard $(SRC_DIR)/*.c) OBJs := $(SRCs:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o) CFLAGS = --std=c99 -D_POSIX_C_SOURCE=200112L -O3 -Wall -Werror -Wextra -pedantic +CFLAGS += -flto LDFLAGS += -lportaudio -lopus -lsodium $(TARGET): $(OBJs)