Let's add -flto to do a link time optimisation. It saves a few bytes.
This commit is contained in:
parent
c72eca2ad8
commit
5fbbea3686
1
Makefile
1
Makefile
@ -13,6 +13,7 @@ SRCs := $(wildcard $(SRC_DIR)/*.c)
|
|||||||
OBJs := $(SRCs:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
|
OBJs := $(SRCs:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
|
||||||
|
|
||||||
CFLAGS = --std=c99 -D_POSIX_C_SOURCE=200112L -O3 -Wall -Werror -Wextra -pedantic
|
CFLAGS = --std=c99 -D_POSIX_C_SOURCE=200112L -O3 -Wall -Werror -Wextra -pedantic
|
||||||
|
CFLAGS += -flto
|
||||||
LDFLAGS += -lportaudio -lopus -lsodium
|
LDFLAGS += -lportaudio -lopus -lsodium
|
||||||
|
|
||||||
$(TARGET): $(OBJs)
|
$(TARGET): $(OBJs)
|
||||||
|
Loading…
Reference in New Issue
Block a user