$OpenBSD: patch-g-wrap_Makefile_in,v 1.1.1.1 2005/02/24 01:42:47 todd Exp $
--- g-wrap/Makefile.in.orig	Thu Nov  7 22:40:46 2002
+++ g-wrap/Makefile.in	Thu Mar 27 10:24:21 2003
@@ -214,7 +214,7 @@ libgwrap_wct_la_LIBADD = @GUILE_LIBS@
 
 ################## (g-wrap gw-wct) section
 nodist_libgw_wct_la_SOURCES = gw-wct.c
-libgw_wct_la_LDFLAGS = -rpath $(libdir) -module -export-dynamic @GUILE_LIBS@
+libgw_wct_la_LDFLAGS = -rpath $(libdir) -L${DESTDIR}${prefix}/lib -module -export-dynamic @GUILE_LIBS@
 libgw_wct_la_LIBADD = libgwrap-wct.la
 test_link_gw_wct_SOURCES = dummy-main.c
 test_link_gw_wct_LDADD = ./libgw-wct.la
@@ -222,7 +222,7 @@ test_link_gw_wct_LDADD = ./libgw-wct.la
 
 ################## From ../g-wrapped 
 LOCALPWD = $(shell pwd)
-SETGWPPATH = "(set! %load-path (cons \"${LOCALPWD}/..\" %load-path))"
+SETGWPPATH = "(set! %load-path (cons \"${LOCALPWD}/..\" %load-path)) (set! %load-path (cons \"${prefix}/share\" %load-path))"
 
 
 ################## (g-wrap gw-standard) section
