From 02772c8400ccf7b2a06e166e23c3ef64649c6cf8 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Sat, 18 Dec 1999 06:27:21 +0000 Subject: [PATCH] * ltmain.in (libtool_args): Get all arguments properly enclosed in quotes and backslash-protected when needed. --- ChangeLog | 5 +++++ ltmain.in | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) 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 -- 2.47.3