$NetBSD: patch-ab,v 1.3 2006/01/12 22:06:16 joerg Exp $

--- Imakefile.orig	2006-01-12 22:00:09.000000000 +0000
+++ Imakefile
@@ -13,7 +13,7 @@ XCOMM price communication.
 
 DEFINES = -DSHAPE -DXQUOTE
 INCLUDES = -I$(INCROOT)/X11
-SYS_LIBRARIES = -lXbae -lXm -lXpm $(XMULIB) $(XTOOLLIB) -lXext $(XLIB) -lm
+SYS_LIBRARIES = -Wl,-R${PREFIX}/lib -lXbae -lXm -lXpm $(XMULIB) $(XTOOLLIB) -lXext $(XLIB) -lm
 DEPLIBS = 
 
 SRCS =  about.c color.c fileXq.c help.c optdetail.c option.c optnet.c \
