ref: 063bfbc71caa91742d7f25162cc87a2e2d13ae0c
parent: 001457fac876cd68e430ceafb8cebd34d48dfb48
author: Clownacy <Clownacy@users.noreply.github.com>
date: Wed Feb 20 11:13:00 EST 2019
Fixed some static-related stupidity in the Makefile
--- a/Makefile
+++ b/Makefile
@@ -35,14 +35,16 @@
endif
CXXFLAGS += -std=c++98 `sdl2-config --cflags` `pkg-config freetype2 --cflags` -MMD -MP -MF $@.d
-LIBS += `sdl2-config --static-libs` `pkg-config freetype2 --libs`
+LIBS += `pkg-config freetype2 --libs`
ifeq ($(STATIC), 1)
- CXXFLAGS += -static
+ CXXFLAGS += `sdl2-config --static-libs` -static
LIBS += -lharfbuzz -lfreetype -lbz2 -lpng -lz -lgraphite2
ifeq ($(WINDOWS), 1)
LIBS += -lRpcrt4 -lDwrite -lusp10
endif
+else
+ CXXFLAGS += `sdl2-config --libs`
endif
# For an accurate result to the original's code, compile in alphabetical order