diff --git a/examples/Makefile.am b/examples/Makefile.am index 29a762d03..1084930fa 100644 --- a/examples/Makefile.am +++ b/examples/Makefile.am @@ -26,7 +26,7 @@ hello_LDADD = $(common_ldadd) if X11_TESTS noinst_PROGRAMS += x11-foreign x11_foreign_SOURCES = x11-foreign.c -x11_foreign_LDADD = $(common_ldadd) +x11_foreign_LDADD = $(common_ldadd) -lX11 endif if SUPPORT_WAYLAND_EGL_SERVER