From efe90a9f3473031fd7b544e0e66c2c0e56121f09 Mon Sep 17 00:00:00 2001 From: "Brian S. Stephan" Date: Tue, 25 Apr 2017 22:14:22 -0500 Subject: [PATCH] only build xinerama_common.o if it is enabled --- Makefile.common | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.common b/Makefile.common index 2a0c336690..777b2141cc 100644 --- a/Makefile.common +++ b/Makefile.common @@ -677,8 +677,10 @@ ifeq ($(HAVE_X11), 1) input/drivers/x11_input.o \ gfx/common/dbus_common.o \ gfx/common/x11_common.o \ - gfx/common/xinerama_common.o \ input/drivers_keyboard/keyboard_event_x11.o + ifeq ($(HAVE_XINERAMA), 1) + OBJ += gfx/common/xinerama_common.o + endif LIBS += $(X11_LIBS) $(XEXT_LIBS) $(XF86VM_LIBS) $(XINERAMA_LIBS) DEFINES += $(X11_CFLAGS) $(XEXT_CFLAGS) $(XF86VM_CFLAGS) $(XINERAMA_CFLAGS)