[Top][All Lists]

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

Re: [PATCH (the *proper* one this time)] add /usr/X11R6/lib and /usr/loc

From: Scott James Remnant
Subject: Re: [PATCH (the *proper* one this time)] add /usr/X11R6/lib and /usr/local/lib to Linux sys_lib_dlsearch_path_spec
Date: Mon, 03 Nov 2003 03:26:18 +0000

On Fri, 2003-10-31 at 13:12, Scott James Remnant wrote:

> This adds /usr/X11R6/lib and /usr/local/lib to the Linux run-time system
> search path for libraries (sys_lib_dlsearch_path_spec), so they don't
> get hardcoded rpaths.
Scratch this patch, instead use the one attached.  It's more portable
between different distributions.

Have you ever, ever felt like this?
Had strange things happen?  Are you going round the twist?
diff -ruNp libtool-CVS~/ChangeLog libtool-CVS/ChangeLog
--- libtool-CVS~/ChangeLog      2003-10-30 14:40:11.000000000 +0000
+++ libtool-CVS/ChangeLog       2003-11-03 03:25:20.000000000 +0000
@@ -0,0 +1,6 @@
+2003-11-02  Scott James Remnant  <address@hidden>
+       * m4/libtool.m4 (Linux): Append contents of /etc/
+       to sys_lib_dlsearch_path_spec if that file exists, so we
+       don't harcode these library paths.
diff -ruNp libtool-CVS~/m4/libtool.m4 libtool-CVS/m4/libtool.m4
--- libtool-CVS~/m4/libtool.m4  2003-10-30 14:28:00.000000000 +0000
+++ libtool-CVS/m4/libtool.m4   2003-11-03 03:24:19.000000000 +0000
@@ -1481,6 +1481,11 @@ linux*)
   # before this can be enabled.
+  # Append contents to the search path
+  if test -f /etc/; then
+    sys_lib_dlsearch_path_spec="/lib /usr/lib "`cat /etc/`
+  fi
   # We used to test for /lib/ and disable shared libraries on
   # powerpc, because MkLinux only supported shared libraries with the
   # GNU dynamic linker.  Since this was broken with cross compilers,

Attachment: signature.asc
Description: This is a digitally signed message part

reply via email to

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