From 02dabd81fdc18928a897223d75c9e94e7db418ea Mon Sep 17 00:00:00 2001 From: piepie62 Date: Wed, 22 Apr 2020 20:26:16 -0400 Subject: [PATCH] That didn't work, so never mind --- Makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 70307d2..a877a93 100644 --- a/Makefile +++ b/Makefile @@ -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 @@ -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