* config/ltmain.in (func_mode_link): Fix quoting bug. Fixes

e.g. the quoting of the -export-symbols-regex argument in .la
files' relink_command.
This commit is contained in:
Ralf Wildenhues 2004-10-01 11:03:03 +00:00 committed by Gary V. Vaughan
parent 9bc5390549
commit 4e184ccb9f
2 changed files with 6 additions and 1 deletions

View File

@ -1,5 +1,9 @@
2004-10-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
* config/ltmain.in (func_mode_link): Fix quoting bug. Fixes
e.g. the quoting of the -export-symbols-regex argument in .la
files' relink_command.
* libltdl/lt__alloc.c (lt__memdup): Allocation can fail, so we
need to guard against null pointer dereference here.
* libltdl/ltdl.c (lt_dlcaller_register): Ditto.

View File

@ -2188,7 +2188,8 @@ func_mode_link ()
arg="$1"
shift
qarg=`$ECHO "X$arg" | $Xsed -e "$sed_quote_subst"`
libtool_args="$libtool_args $qarg"
func_quote_for_eval "$qarg"
libtool_args="$libtool_args $func_quote_for_eval_result"
# If the previous option needs an argument, assign it.
if test -n "$prev"; then