Hello Ralf.
Thanks for the advice with libtool.m4. I have done a hack to it, which I am 
attaching. It is probably inconsistent with the rest of the file, but for now 
it works. There are several more places with sys_lib_search_path_spec, I did 
not touch them. 
It strips the trailing slashes off the paths obtained from 'gcc 
-print-search-dirs' .
Regards, V.

--- /usr/share/aclocal/libtool.m4.orig  2006-08-21 14:03:53.000000000 +0200
+++ /usr/share/aclocal/libtool.m4       2006-08-21 14:05:36.000000000 +0200
@@ -1096,7 +1096,7 @@
 dynamic_linker="$host_os ld.so"
 sys_lib_dlsearch_path_spec="/lib /usr/lib"
 if test "$GCC" = yes; then
-  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED 
-e "s/^libraries://" -e "s,=/,/,g"`
+  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED 
-e "s/^libraries://" -e "s,=/,/,g" -e "s,/:,:,g" -e "s,/$,,g" `
   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
     # if the path contains ";" then we assume it to be the separator
     # otherwise default to the standard path separator (i.e. ":") - it is
_______________________________________________
http://lists.gnu.org/mailman/listinfo/libtool

Reply via email to