From 7c483431f1026e5bbfedc18c369652bb96f9f8dd Mon Sep 17 00:00:00 2001 From: =?utf8?q?T=C3=B6r=C3=B6k=20Edwin?= Date: Sat, 28 Feb 2009 13:26:59 +0100 Subject: [PATCH] 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 --- ChangeLog | 9 +++++++++ libltdl/config/ltmain.m4sh | 1 + 2 files changed, 10 insertions(+) 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) -- 2.47.3