bug-libtool
[Top][All Lists]
Advanced

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

Remove "/.libs" from shlib_search_path?


From: H. J. Lu
Subject: Remove "/.libs" from shlib_search_path?
Date: Wed, 3 Jul 2002 11:14:11 -0700
User-agent: Mutt/1.2.5.1i

shlib_search_path is set from shlibpath_var. In some cases,

shlibpath_var=LD_LIBRARY_PATH

The problem is LD_LIBRARY_PATH may set to a .libs directory inside the 
build tree. When the a .libs directory appears in shlib_search_path,
libtool may pass ..../.libs/.libs/libxxxx.so to ld. This patch seems
to fix the problem for me. Any comments?


H.J.
----
2002-07-03  H.J. Lu <address@hidden>

        * ltmain.sh: Remove "/.libs" from shlib_search_path.

--- ltmain.sh.libs      Fri Jun  7 15:38:02 2002
+++ ltmain.sh   Wed Jul  3 11:02:26 2002
@@ -1580,7 +1580,7 @@ EOF
 
     if test -n "$shlibpath_var"; then
       # get the directories listed in $shlibpath_var
-      eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e 
\'s/:/ /g\'\`
+      eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e 
\'s/:/ /g\'  -e \'s,/\.libs,,g\'\`
     else
       shlib_search_path=
     fi



reply via email to

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