bug-libtool
[Top][All Lists]
Advanced

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

Re: libtool bug: freebsd -rpath, LD_LIBRARY_PATH issues


From: Ralf Wildenhues
Subject: Re: libtool bug: freebsd -rpath, LD_LIBRARY_PATH issues
Date: Fri, 11 Nov 2005 00:20:20 +0100
User-agent: Mutt/1.5.9i

Me again,

* Ralf Wildenhues wrote on Tue, Nov 08, 2005 at 05:04:42PM CET:
> * Dave Benson wrote on Tue, Nov 08, 2005 at 04:31:21PM CET:
> > 
> > I've been porting some software to freebsd 5.4,
> > and i've been encountering an issue in the
> > precedence of LD_LIBRARY_PATH versus -rpath.
> > 
> > Apparently, linux and older version of freebsd
> > treat -rpath to be of higher precedence.
> > The newest freebsds treat LD_LIBRARY_PATH
> > as having higher precedence.  (apparently solaris
> > also has LD_LIBRARY_PATH higher precendence)

> I am working on a related fix at the moment.
> Give me a little bit time, it should be fixed in 1.5.22.
> I can notify you when I have something to test.

OK, this PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=28191
|
| State-Changed-When: Sun Feb 10 17:12:40 PST 2002 
| State-Changed-Why:  
| The fix for this has been merged into the RELENG_4 branch. 

suggests that the change (to give LD_LIBRARY_PATH highest precedence)
was in version 4.6 (which came out June 2002).  Can anybody confirm
this?  Also, I don't know when they stopped using freebsdelf as a name,
so I'm just guessing from version 4 maybe?

Dave, could you try this patch on CVS branch-1-5 Libtool?
(there is another related fix in the branch, newer than 1.5.20)

Thanks,
Ralf

        * libtool.m4 (AC_LIBTOOL_SYS_DYNAMIC_LINKER) [ freebsd ]: 
        Fix shlibpath_overrides_runpath settings.
        Reported by Dave Benson <address@hidden>.

Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/Attic/libtool.m4,v
retrieving revision 1.314.2.127
diff -u -r1.314.2.127 libtool.m4
--- libtool.m4  9 Nov 2005 22:37:42 -0000       1.314.2.127
+++ libtool.m4  10 Nov 2005 23:15:15 -0000
@@ -1425,8 +1425,13 @@
     shlibpath_overrides_runpath=yes
     hardcode_into_libs=yes
     ;;
-  *) # from 3.2 on
+  freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
+  freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
     shlibpath_overrides_runpath=no
+    hardcode_into_libs=yes
+    ;;
+  freebsd*) # from 4.6 on
+    shlibpath_overrides_runpath=yes
     hardcode_into_libs=yes
     ;;
   esac




reply via email to

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