$NetBSD: patch-ah,v 1.3 2007/07/20 00:09:23 gdt Exp $

--- guile-config/guile-config.in.orig	2007-05-09 16:22:03.000000000 -0400
+++ guile-config/guile-config.in
@@ -155,7 +155,7 @@
                (if (or (string=? libdir "/usr/lib")
                        (string=? libdir "/usr/lib/"))
 		   ""
-		   (string-append "-L" (get-build-info 'libdir)))
+		   (string-append "-Wl,-R" (get-build-info 'libdir) " -L" (get-build-info 'libdir)))
 	       (string-join other-flags)
 
 	       )))
