From: David Paleino <dapal@debian.org>
Subject: add linkage to X11, otherwise FTBFS
Forwarded: no

---
 src/plugins/contrib/codesnippets/resources/Makefile.am |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- codeblocks.orig/src/plugins/contrib/codesnippets/resources/Makefile.am
+++ codeblocks/src/plugins/contrib/codesnippets/resources/Makefile.am
@@ -12,7 +12,7 @@ pluginlibdir = $(pkglibdir)/plugins
 ##pluginlib_LTLIBRARIES = codesnippets
 bin_PROGRAMS = codesnippets
 
-codesnippets_LDFLAGS = $(WX_GTK2_LIBS)
+codesnippets_LDFLAGS = $(WX_GTK2_LIBS) -lX11
 
 ##codesnippets_LIBADD = $(PLUGIN_WX_LIBS) ../../../../sdk/libcodeblocks.la
 ##codesnippets_LDADD = $(PLUGIN_WX_LIBS) ../../../../sdk/libcodeblocks.la
