$NetBSD: patch-ae,v 1.1 2003/01/17 04:43:06 uebayasi Exp $

--- guile-config/guile-config.in.orig	Thu Jan  3 20:05:00 2002
+++ guile-config/guile-config.in
@@ -164,7 +164,7 @@
 
 	 ;; Include libguile itself in the list, along with the
 	 ;; directory it was installed in.
-	 (flags (cons (string-append "-L" (get-build-info 'libdir))
+	 (flags (cons (string-append "-Wl,-R" (get-build-info 'libdir) " -L" (get-build-info 'libdir))
 		      (cons "-lguile" flags))))
 
     ;; Display the flags, separated by spaces.
