Skip to content

Commit

Permalink
Enable LTO and remove debugging settings
Browse files Browse the repository at this point in the history
  • Loading branch information
piepie62 committed Apr 22, 2020
1 parent 8d45f4f commit 170e907
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ CPPFILES := $(patsubst ./%,%,$(foreach dir,$(SOURCES),$(call rwildcard,$(dir),*.
EXEC_NAME := gallerypack
BUILD := build

CFLAGS := -Og -g -ffunction-sections -fdata-sections $(foreach dir, $(INCLUDES), -I$(CURDIR)/$(dir)) $(foreach dir, $(NOFORMAT_INCLUDES), -I$(CURDIR)/$(dir))
CFLAGS := -O3 -ffunction-sections -fdata-sections $(foreach dir, $(INCLUDES), -I$(CURDIR)/$(dir)) $(foreach dir, $(NOFORMAT_INCLUDES), -I$(CURDIR)/$(dir)) -flto
CXXFLAGS := $(CFLAGS) -std=gnu++17

OFILES := $(CFILES:.c=.c.o) $(CPPFILES:.cpp=.cpp.o)
Expand All @@ -34,7 +34,7 @@ BUILD_OFILES := $(addprefix $(BUILD)/, $(BUILD_OFILES))
DEPSFILES := $(BUILD_OFILES:.o=.d)

LD := $(if $(CPPFILES),$(CXX),$(CC))
LDFLAGS := -g -lbz2
LDFLAGS := -lbz2 -flto

ifeq ($(OS),Windows_NT)
EXEC_NAME := gallerypack.exe
Expand Down

0 comments on commit 170e907

Please sign in to comment.