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