unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* rpath handling in guile-config
@ 2004-11-16  1:38 Greg Troxel
  2004-11-19 23:28 ` Rob Browning
  0 siblings, 1 reply; 2+ messages in thread
From: Greg Troxel @ 2004-11-16  1:38 UTC (permalink / raw)


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)))
 


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: rpath handling in guile-config
  2004-11-16  1:38 rpath handling in guile-config Greg Troxel
@ 2004-11-19 23:28 ` Rob Browning
  0 siblings, 0 replies; 2+ messages in thread
From: Rob Browning @ 2004-11-19 23:28 UTC (permalink / raw)
  Cc: guile-devel

Greg Troxel <gdt@ir.bbn.com> writes:

> 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.

We should be able to accomodate this by having guile-config DTRT based
on either a configure arg, or on platform detection in cases where the
right answer is clear.

-- 
Rob Browning
rlb @defaultvalue.org and @debian.org; previously @cs.utexas.edu
GPG starting 2002-11-03 = 14DD 432F AE39 534D B592  F9A0 25C8 D377 8C7E 73A4


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-11-19 23:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-16  1:38 rpath handling in guile-config Greg Troxel
2004-11-19 23:28 ` Rob Browning

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).