Index: lib/local.mk
===================================================================
--- lib/local.mk	(revision 515)
+++ lib/local.mk	(working copy)
@@ -4,7 +4,7 @@
 
 LIB_OBJS = aes.lo auth.lo buf.lo cache.lo channel.lo commands.lo dns.lo ezxml.lo handlers.lo keyexchange.lo packet.lo puzzle.lo session.lo shn.lo sndqueue.lo util.lo network.lo despotify.lo sha1.lo hmac.lo xml.lo 
 
-LDFLAGS += -rpath /usr/lib
+LDFLAGS += -rpath @PREFIX@/lib
 LDCONFIG = ldconfig
 
 .PHONY: all clean install uninstall
