guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

rpath handling in guile-config


From: Greg Troxel
Subject: rpath handling in guile-config
Date: Mon, 15 Nov 2004 20:38:29 -0500

NetBSD pkgsrc applies this patch to get -R passed to the linker.  This
is needed because pkgsrc puts libs in /usr/pkg/lib and this is not in
the default search path.

I realize rpath is contorversial.  It would be nice to support each
os's way, though, but I don't have any non-kludgy ideas.

$NetBSD: patch-ah,v 1.1 2003/01/17 04:52:31 uebayasi Exp $

--- guile-config/guile-config.in.orig   Sun Dec  8 07:41:30 2002
+++ guile-config/guile-config.in
@@ -177,7 +177,7 @@
             (string=? libdir "/usr/lib/"))
         (display-separated (cons "-lguile -lguile-ltdl" other-flags))
         (display-separated (cons
-                            (string-append "-L" (get-build-info 'libdir))
+                            (string-append "-Wl,-R" (get-build-info 'libdir) " 
-L" (get-build-info 'libdir))
                             (cons "-lguile -lguile-ltdl" other-flags))))
     (newline)))
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]