]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltconfig.in (linux*, solaris*, bsdi4*, sys_lib_search_path):
authorAlexandre Oliva <oliva@dcc.unicamp.br>
Wed, 20 Jan 1999 19:48:44 +0000 (19:48 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Wed, 20 Jan 1999 19:48:44 +0000 (19:48 +0000)
remove expansion of $LD_LIBRARY_PATH
* ltmain.in (lib_search_path): append the expansion of $shlibpath_var
* doc/libtool.texi: document it

ChangeLog
doc/libtool.texi
ltconfig.in
ltmain.in

index 98e5a0f41b0d5dc2fae4e55cbdfed9910b4e1237..833da692455829ee0466f6f41eb7abbac3f96c9d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 1999-01-20  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * ltconfig.in (linux*, solaris*, bsdi4*, sys_lib_search_path):
+       remove expansion of $LD_LIBRARY_PATH
+       * ltmain.in (lib_search_path): append the expansion of $shlibpath_var
+       * doc/libtool.texi: document it
+
        * THANKS: Added Steven Schultz
 
 1999-01-20  Steven M. Schultz <sms@wlv.iipo.gtegsc.com>
index 4be0295389370888c27e54394995a32029f9a8b2..7ecde30f2b8942d38430e70421d947eeae0255d0 100644 (file)
@@ -3547,7 +3547,9 @@ the file.
 @end defvar
 
 @defvar sys_lib_search_path_spec
-Expression to get the system library search path.
+Expression to get the system library search path.  The directories
+listed in @var{shlibpath_var} are automatically appended to this list,
+every time libtool runs (i.e., not at configuration time).
 @end defvar
 
 @defvar version_type
index 99c8299d81e14c1b6857a4d0f3055eaa1d3040b3..8cf128693e40d9c9ea5aedb2d0541da27b115e8c 100755 (executable)
@@ -1651,7 +1651,7 @@ bsdi4*)
   finish_cmds='PATH="$PATH:/sbin" ldconfig $libdir'
   shlibpath_var=LD_LIBRARY_PATH
   check_shared_deplibs_method='file_magic ELF 32-bit LSB shared object'
-  sys_lib_search_path="/shlib /usr/lib /usr/local/lib `echo $LD_LIBRARY_PATH | sed -e 's/:/ /g'`"
+  sys_lib_search_path="/shlib /usr/lib /usr/local/lib"
   ;;
 
 cygwin32* | mingw32*)
@@ -1735,7 +1735,6 @@ linux-gnu*)
   shlibpath_var=LD_LIBRARY_PATH
   deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
   file_magic_command=file
-  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib `echo $LD_LIBRARY_PATH | sed -e 's/:/ /g'`"
 
   if test -f /lib/ld.so.1; then
     dynamic_linker='GNU ld.so'
@@ -1803,7 +1802,6 @@ solaris*)
   postinstall_cmds='chmod +x $lib'
   deplibs_check_method="file_magic ELF [0-9][0-9]-bit [LM]SB dynamic lib"
   file_magic_command="file"
-  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib `echo $LD_LIBRARY_PATH | sed -e 's/:/ /g'`"
   ;;
 
 sunos4*)
index 3dc2c57a929bf6500492b46c547e532714ff022e..66a8d77ea3d23edd3b04c91e16460b6b8831bfc7 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -655,7 +655,15 @@ compiler."
     convenience=
     old_convenience=
     deplibs=
-    eval lib_search_path=\"$sys_lib_search_path_spec\"
+
+    if test -n "$shlibpath_var"; then
+      # get the directories listed in $shlibpath_var
+      eval lib_search_path=\`\$echo \"X \${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
+    else
+      libsearch_path=
+    fi
+    # now prepend the system-specific ones
+    eval lib_search_path=\"$sys_lib_search_path_spec\$lib_search_path\"
     
     avoid_version=no
     dlfiles=