This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Preinstall thoughts
On Wed, Dec 04, 2002 at 06:05:33PM -0200, Alexandre Oliva wrote:
>
> > If so, would it make any difference if I changed the line in the
> > *preinstalled* foo.la to say "installed=no" ?
>
> Nope. It would only make it worse. The pathname would probably still
> be there, and you'd have to move the installed libraries from .../lib
> to .../lib/.libs
>
> Libtool really needs some way to be told that a -L flag is only to be
> used within the build tree.
>
This is what I have been using. I never liked libtool. I just hack it
enough to make it to work for me.
H.J.
----
2002-07-03 H.J. Lu <hjl@gnu.org>
* 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