Skip to content

Commit

Permalink
That didn't work, so never mind
Browse files Browse the repository at this point in the history
  • Loading branch information
piepie62 committed Apr 23, 2020
1 parent 3556cfe commit 02dabd8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ BUILD_OFILES := $(addprefix $(BUILD)/, $(BUILD_OFILES))
DEPSFILES := $(BUILD_OFILES:.o=.d)

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

ifeq ($(OS),Windows_NT)
EXEC_NAME := gallerypack.exe
Expand All @@ -43,9 +43,7 @@ LDFLAGS += -lstdc++fs
endif

ifneq ($(OS),Darwin)
LDFLAGS += -Wl,--gc-sections -Wl,-Bstatic -lbz2 -Wl,-Bdynamic
else
LDFLAGS += -lbz2
LDFLAGS += -static
endif

.PHONY: all clean
Expand Down

0 comments on commit 02dabd8

Please sign in to comment.