On 07/30/2010 08:55 PM, Charles Wilson wrote:
> Since the bug is cross-platform, it should be easy(er) to fix for you
> non-cygwin types.  Any ideas, Paolo?

Not tested yet, but I am pretty sure this should do it:


diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh
index b0b0ebc..945248a 100644
--- a/libltdl/config/ltmain.m4sh
+++ b/libltdl/config/ltmain.m4sh
@@ -8066,12 +8066,12 @@ EOF
                func_append newdependency_libs " ${lt_sysroot:+=}$libdir/$name"
                ;;
              -L*)
-               func_stripname -L '' "$i"
+               func_stripname -L '' "$deplib"
                func_replace_sysroot "$func_stripname_result"
                func_append newdependency_libs " -L$func_replace_sysroot_result"
                ;;
              -R*)
-               func_stripname -R '' "$i"
+               func_stripname -R '' "$deplib"
                func_replace_sysroot "$func_stripname_result"
                func_append newdependency_libs " -R$func_replace_sysroot_result"
                ;;

Reply via email to