--- src/dl.c.orig	2010-05-25 16:52:46.000000000 -0500
+++ src/dl.c	2011-01-14 21:58:17.000000000 -0600
@@ -141,6 +141,7 @@
     }
 
 #ifdef XMLSEC_DL_LIBLTDL
+    lt_dlsetsearchpath("@PREFIX@/lib");
     lib->handle = lt_dlopenext((char*)lib->filename);
     if(lib->handle == NULL) {
         xmlSecError(XMLSEC_ERRORS_HERE,
