From: Török Edwin Date: Sat, 28 Feb 2009 12:26:59 +0000 (+0100) Subject: Do not add bogus directory arguments to link command lines. X-Git-Tag: v2.2.7b~108 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7c483431f1026e5bbfedc18c369652bb96f9f8dd;p=thirdparty%2Flibtool.git Do not add bogus directory arguments to link command lines. * libltdl/config/ltmain.m4sh (func_mode_link): Ensure $path is always initialized before it is used. Reported for zsh, for which $path contains $PATH entries even after "emulate sh", see . Signed-off-by: Ralf Wildenhues --- diff --git a/ChangeLog b/ChangeLog index 8308fc4e3..022da07e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2009-02-28 Török Edwin (tiny change) + Ralf Wildenhues + + Do not add bogus directory arguments to link command lines. + * libltdl/config/ltmain.m4sh (func_mode_link): Ensure $path is + always initialized before it is used. Reported for zsh, for + which $path contains $PATH entries even after "emulate sh", see + . + 2009-02-28 Andreas Schwab Ralf Wildenhues diff --git a/libltdl/config/ltmain.m4sh b/libltdl/config/ltmain.m4sh index 49e07c3bf..7fcf4cbdf 100644 --- a/libltdl/config/ltmain.m4sh +++ b/libltdl/config/ltmain.m4sh @@ -5624,6 +5624,7 @@ func_mode_link () if test "$link_all_deplibs" != no; then # Add the search paths of all dependency libraries for deplib in $dependency_libs; do + path= case $deplib in -L*) path="$deplib" ;; *.la)