medit_SOURCES = medit.c linebreak.c
medit_LDADD = ${common_ldflags_gui}
-medit_LDFLAGS = ${X_PRE_LIBS} ${X_LIBS} -lXaw -lXmu ${X_EXTRA_LIBS} @WORDCUT_LD_FLAGS@
+medit_LDFLAGS = ${X_PRE_LIBS} ${X_LIBS} -lX11 -lXt -lXaw -lXmu ${X_EXTRA_LIBS} @WORDCUT_LD_FLAGS@
mview_SOURCES = mview.c
mview_LDADD = ${common_ldflags_gui}
-mview_LDFLAGS = ${X_PRE_LIBS} ${X_LIBS} -lXaw -lXmu ${X_EXTRA_LIBS}
+mview_LDFLAGS = ${X_PRE_LIBS} ${X_LIBS} -lX11 -lXt -lXaw -lXmu ${X_EXTRA_LIBS}
mdump_SOURCES = mdump.c linebreak.c
mdump_LDADD = ${common_ldflags_gui}