From 1722e9481370ec25e7321f7ece15286c1a4528bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Robert=20Kl=C3=B6fkorn?= <robertk@dune-project.org>
Date: Tue, 20 Mar 2007 13:30:19 +0000
Subject: [PATCH] also pass path to linker, otherwise not working with shared
 lib.

[[Imported from SVN: r4866]]
---
 m4/grape.m4 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/m4/grape.m4 b/m4/grape.m4
index 9939a25db..536065de2 100644
--- a/m4/grape.m4
+++ b/m4/grape.m4
@@ -65,7 +65,7 @@ if test "x$X_LIBS" != x && test x$with_grape != xno ; then
     LDFLAGS="$LDFLAGS $GL_LDFLAGS"
 
     AC_CHECK_LIB(gr, grape, 
-      [GRAPE_LDFLAGS="-L$GRAPEROOT $GL_LDFLAGS"
+      [GRAPE_LDFLAGS="-L$GRAPEROOT $GL_LDFLAGS -Wl,--rpath -Wl,$GRAPEROOT"
        GRAPE_CPPFLAGS="$CPPFLAGS"
        GRAPE_LIBS="-lgr $GL_LIBS -lXext"], 
       [HAVE_GRAPE="0"])
-- 
GitLab