diff --git a/Makefile b/Makefile index 1e7c7cf942..6d79be753a 100644 --- a/Makefile +++ b/Makefile @@ -79,8 +79,10 @@ ifeq ($(platform), unix) endif HAVE_THREADS=1 ifneq ($(filter $(ARCH),x86 x86_64),) - LIBS += -lGL - HAVE_OPENGL=1 + ifneq ($(DISABLE_OPENGL), 1) + LIBS += -lGL + HAVE_OPENGL=1 + endif endif ifeq ($(ARCH),x86_64) JIT_ARCH=x64