diff --git a/waitforx/Makefile.am b/waitforx/Makefile.am index 5b96f6614d..d4ddaa45ab 100644 --- a/waitforx/Makefile.am +++ b/waitforx/Makefile.am @@ -1,7 +1,7 @@ pkglibexec_PROGRAMS = \ waitforx -AM_LDFLAGS = -lX11 -lXrandr +AM_LDFLAGS = $(X_LIBS) -lX11 -lXrandr AM_CPPFLAGS = \ -I$(top_srcdir)/sesman/sesexec \