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