$NetBSD: patch-ac,v 1.1 2006/03/22 23:33:47 joerg Exp $

--- Imakefile.orig	2006-03-22 23:22:55.000000000 +0000
+++ Imakefile
@@ -93,7 +93,7 @@ CCOPTIONS = -Aa -D_HPUX_SOURCE -I/usr/in
 LOCAL_LIBRARIES = -L/usr/lib/$(MOTIF_VER) -lXm $(XTOOLLIB) $(XLIB) $(SOCKS_LIBS)
 #else
 #ifndef XMLIB
-XMLIB = -lXm
+XMLIB = ${COMPILER_RPATH_FLAG}${PREFIX}/lib -lXm
 #endif
 #ifdef XmClientLibs
 LOCAL_LIBRARIES = XmClientLibs $(SOCKS_LIBS)
