From 4e184ccb9f6a7f5e393b5c852e4582926c51ed03 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Fri, 1 Oct 2004 11:03:03 +0000 Subject: [PATCH] * 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. --- ChangeLog | 4 ++++ config/ltmain.in | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index f958c517..72b09c3c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2004-10-01 Ralf Wildenhues + * 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. diff --git a/config/ltmain.in b/config/ltmain.in index 99386648..7ded8e4c 100644 --- a/config/ltmain.in +++ b/config/ltmain.in @@ -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