summaryrefslogtreecommitdiff
path: root/app/xidle
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2010-11-27 14:25:48 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2010-11-27 14:25:48 +0000
commit997b535a20c1ef991377fb0d1b237efe4e2bb928 (patch)
tree3101a99934f20dae3c0fdb30202c568c87560a81 /app/xidle
parent5aaf76b3bf54896c7779634c10940edc785ca482 (diff)
Explicitely link libxcb when needed for static arches.
Diffstat (limited to 'app/xidle')
-rw-r--r--app/xidle/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/app/xidle/Makefile b/app/xidle/Makefile
index 6e1f38e85..8c61aff70 100644
--- a/app/xidle/Makefile
+++ b/app/xidle/Makefile
@@ -1,11 +1,14 @@
-# $OpenBSD: Makefile,v 1.4 2008/03/25 23:41:50 matthieu Exp $
+# $OpenBSD: Makefile,v 1.5 2010/11/27 14:25:47 matthieu Exp $
.include <bsd.xconf.mk>
PROG= xidle
CPPFLAGS+= -I${X11BASE}/include
CFLAGS+= -Wall
-LDADD+= -L${X11BASE}/lib -lXss -lXext -lX11 -lXau -lXdmcp
+.if ${XENOCARA_BUILD_XCB:L} != "no"
+LIBXCB= -lxcb
+.endif
+LDADD+= -L${X11BASE}/lib -lXss -lXext -lX11 ${LIBXCB} -lXau -lXdmcp
MANDIR= ${X11BASE}/man/cat