From 8e76e3859155a575af532e352889438d6e8602d9 Mon Sep 17 00:00:00 2001 From: Clownacy Date: Tue, 19 Feb 2019 03:32:28 +0000 Subject: [PATCH] Possible fix for static builds on non-Windows platforms? --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 501602fb..7364f5af 100644 --- a/Makefile +++ b/Makefile @@ -39,7 +39,10 @@ LIBS += `sdl2-config --static-libs` `pkg-config freetype2 --libs` ifeq ($(STATIC), 1) CXXFLAGS += -static - LIBS += -lharfbuzz -lfreetype -lbz2 -lpng -lz -lgraphite2 -lRpcrt4 -lDwrite -lusp10 + LIBS += -lharfbuzz -lfreetype -lbz2 -lpng -lz -lgraphite2 + ifeq ($(WINDOWS), 1) + LIBS += -lRpcrt4 -lDwrite -lusp10 + endif endif # For an accurate result to the original's code, compile in alphabetical order