summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authormatthieu <matthieu>2010-11-27 14:25:47 +0000
committermatthieu <matthieu>2010-11-27 14:25:47 +0000
commit111a88129dcd5891b7fad40771f07cc73183e146 (patch)
treec2ecc04a3438d29f7aa1a616cb7085d7d40670ef /Makefile
parent1f310d57e2284d7e6bf1edc947a7f263baef8d5d (diff)
downloadcwm-111a88129dcd5891b7fad40771f07cc73183e146.tar.gz
cwm-111a88129dcd5891b7fad40771f07cc73183e146.tar.xz
cwm-111a88129dcd5891b7fad40771f07cc73183e146.zip
Explicitely link libxcb when needed for static arches.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 1576e77..8c43a84 100644
--- a/Makefile
+++ b/Makefile
@@ -11,8 +11,11 @@ SRCS=		calmwm.c screen.c xmalloc.c client.c menu.c \
 CPPFLAGS+=	-I${X11BASE}/include -I${X11BASE}/include/freetype2 -I${.CURDIR}
 
 CFLAGS+=	-Wall
+.if ${XENOCARA_BUILD_XCB:L} != "no"
+LIBXCB=		-lxcb
+.endif
 
-LDADD+=		-L${X11BASE}/lib -lXft -lXrender -lX11 -lXau -lXdmcp \
+LDADD+=		-L${X11BASE}/lib -lXft -lXrender -lX11 ${LIBXCB} -lXau -lXdmcp \
 		-lfontconfig -lexpat -lfreetype -lz -lXinerama -lXrandr -lXext
 
 MANDIR=		${X11BASE}/man/cat