From bd79a92a123da135bf1bbeb3f0873677759901fc Mon Sep 17 00:00:00 2001 From: Kirk Lange Date: Wed, 15 Aug 2018 15:55:10 -0700 Subject: [PATCH] gl-related flags not trigger when not use glfw --- script/ezmake.mk | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/ezmake.mk b/script/ezmake.mk index 8cc7f82..259402d 100644 --- a/script/ezmake.mk +++ b/script/ezmake.mk @@ -94,7 +94,9 @@ ifneq (, $(shell uname -s | grep -E Linux)) DYN_EXT = so EXE_EXT = out CF += - LF += -lX11 -lXxf86vm -lXrandr -lpthread -lXi -lm -ldl -lXinerama -lXcursor + LF += $(if $(filter glew glfw3,$(PKGS)), \ + -lX11 -lXxf86vm -lXrandr -lpthread \ + -lXi -lm -ldl -lXinerama -lXcursor) OPEN = xdg-open endif ifneq (, $(shell uname -s | grep -E Darwin))