$NetBSD: patch-ad,v 1.6 2001/07/24 17:18:38 tron Exp $ --- src/Imakefile.orig Sat Nov 21 16:31:37 1998 +++ src/Imakefile Tue Jul 24 19:13:44 2001 @@ -5,6 +5,8 @@ #undef MAIL_COMMAND #undef EDIT_COMMAND +LDPRELIBS = + XMU_LIB = XPM_LIB = REGEXP_LIB = @@ -16,11 +18,11 @@ #endif #if HAVE_XMU -XMU_LIB = -lXmu +XMU_LIB = $(LDPRELIB) -lXmu #endif #if HAVE_XPM -XPM_LIB = -lXpm +XPM_LIB = -Wl,-R$(USRLIBDIR) -lXpm #endif #if !HAVE_JPEG