From: Alexandre Oliva Date: Sat, 18 Dec 1999 06:27:21 +0000 (+0000) Subject: * ltmain.in (libtool_args): Get all arguments properly enclosed in X-Git-Tag: release-1-3d~236 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02772c8400ccf7b2a06e166e23c3ef64649c6cf8;p=thirdparty%2Flibtool.git * ltmain.in (libtool_args): Get all arguments properly enclosed in quotes and backslash-protected when needed. --- diff --git a/ChangeLog b/ChangeLog index 83c9cba4b..b19bdf2f4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1999-12-18 Alexandre Oliva + + * ltmain.in (libtool_args): Get all arguments properly enclosed in + quotes and backslash-protected when needed. + 1999-12-16 Alexandre Oliva * ltdl.m4: Renamed from... diff --git a/ltmain.in b/ltmain.in index e3877aa1a..4ea98ad9e 100644 --- a/ltmain.in +++ b/ltmain.in @@ -728,7 +728,13 @@ compiler." while test $# -gt 0; do arg="$1" shift - libtool_args="$libtool_args $arg" + case "$arg" in + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*) + qarg=\"`echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" + ;; + *) qarg=$arg ;; + esac + libtool_args="$libtool_args $qarg" # If the previous option needs an argument, assign it. if test -n "$prev"; then