shithub: cstory

Download patch

ref: 8e76e3859155a575af532e352889438d6e8602d9
parent: 84945aa8985660c136a7eb8ba084df16864c8b5e
author: Clownacy <[email protected]>
date: Mon Feb 18 22:32:28 EST 2019

Possible fix for static builds on non-Windows platforms?

--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,10 @@
 
 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