libtool
[Top][All Lists]
Advanced

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

Re: Problem with '-L' switch.


From: Ralf Wildenhues
Subject: Re: Problem with '-L' switch.
Date: Sat, 19 Aug 2006 09:53:47 +0200
User-agent: Mutt/1.5.12-2006-07-14

Hello Vaclav,

* Vaclav Havlik wrote on Thu, Aug 17, 2006 at 01:55:40PM CEST:
> I am sending the files like before and also the script itself.

Thanks.  Please note that the package in question is using an old
Libtool version (1.5.6); current in 1.5.22.  But the issue you encounter
is not fixed in that version.

Please try the patch below on the generated libtool script; the change
may be a bit too big hammer in general, so I still need to look how to
make it applicable in general to ltmain.sh.  But I believe it should
work in your case.  If not, please send the debug output with that
change.

(Technical note: in this part of the code we're building the command
line parts of "indirect" dependencies; the command line is built
forward, so there is no point uniquifying against that; one could think
about applying hardcoding rules to these dependencies too; also, for the
link_all_deplibs=no case, we should still walk this code and remember
the paths, so even if they happen to be nonstandard, we can use them for
dlopening uninstalled modules which depend on them.)

Thanks,
Ralf

--- libtool.old 2006-08-19 09:29:49.000000000 +0200
+++ libtool     2006-08-19 09:44:12.000000000 +0200
@@ -2994,7 +2994,10 @@
                  path=""
                  ;;
                *)
-                 path="-L$path"
+                 case " $sys_lib_search_path " in
+                 *" $path "*) path= ;;
+                 *) path="-L$path" ;;
+                 esac
                  ;;
                esac
                ;;




reply via email to

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