From 16ecf7fb0aff1e26502c443565f940a2e92ceae8 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Tue, 21 May 2019 21:52:31 +0200 Subject: [PATCH] fix API=x11 build --- src/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 563038d4..a0aa31da 100644 --- a/src/Makefile +++ b/src/Makefile @@ -671,6 +671,10 @@ endif COPT += $(shell $(PKG_CONFIG) --cflags x11) endif endif + ifeq ($(API),x11) + LOPT += $(shell $(PKG_CONFIG) --libs x11) + COPT += $(shell $(PKG_CONFIG) --cflags x11) + endif ifeq ($(NO_X11),1) COPT += -DNO_X11 endif @@ -771,7 +775,6 @@ endif ifeq ($(API),x11) APIOBJ = x11screen.o COPT += -DUSE_X11 - LOPT += -lX11 endif #To enable Joystick emulation of cursor, make USE_JOYSTICK=1 (for input.o)