From fc0a319ea4db898c4eeeecd9263add33ce6b300f Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Tue, 7 May 2024 06:41:02 -0400 Subject: [PATCH] Move LDFLAGS to end of compiler flags, since library order matters for Mingw. --- compile.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compile.mk b/compile.mk index be6332c9..dcc6af0d 100644 --- a/compile.mk +++ b/compile.mk @@ -66,7 +66,7 @@ DEPENDENCIES := $(patsubst %, build/%.d, $(SOURCES)) # Final targets $(TARGET): $(OBJECTS) - $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $@ $^ + $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS) -include $(DEPENDENCIES)