From 33b92082465b31d839ecb78eecc5df9ec12cbcf1 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 12 Jul 2019 11:24:57 +0200 Subject: [PATCH] Fix console warnings when building without X11 Signed-off-by: falkTX --- Makefile.base.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile.base.mk b/Makefile.base.mk index 83ef5c45..ea4d0547 100644 --- a/Makefile.base.mk +++ b/Makefile.base.mk @@ -217,9 +217,11 @@ DGL_SYSTEM_LIBS += -lgdi32 endif ifneq ($(HAIKU_OR_MACOS_OR_WINDOWS),true) +ifeq ($(HAVE_X11),true) DGL_FLAGS += $(shell $(PKG_CONFIG) --cflags x11) DGL_SYSTEM_LIBS += $(shell $(PKG_CONFIG) --libs x11) endif +endif # --------------------------------------------------------------------------------------------------------------------- # Set Cairo specific stuff