]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* libtool.m4 (_LT_AC_LANG_CXX_CONFIG) [hpux, linux, osf,
authorGary V. Vaughan <gary@gnu.org>
Wed, 11 Jul 2001 22:27:31 +0000 (22:27 +0000)
committerGary V. Vaughan <gary@gnu.org>
Wed, 11 Jul 2001 22:27:31 +0000 (22:27 +0000)
solaris]: output_verbose_link_cmd have unquoted `*' in case
statements for these architectures.  Be sure to quote them
with a sed expression before passing to eval.
Reported by Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu>

ChangeLog
NEWS
libtool.m4

index 1486d127064c01e2208e6345cdc3519cf271240f..7c9e499ebfe2b99b4300bab492febdaf2186c716 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2001-07-11  Gary V. Vaughan  <gary@gnu.org>
+
+       * libtool.m4 (_LT_AC_LANG_CXX_CONFIG) [hpux, linux, osf,
+       solaris]: output_verbose_link_cmd have unquoted `*' in case
+       statements for these architectures.  Be sure to quote them
+       with a sed expression before passing to eval.
+       Reported by Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu>
+
 2001-07-09  Gary V. Vaughan  <gary@gnu.org>
 
        * README-alpha:  s/configure.in/configure.ac.
diff --git a/NEWS b/NEWS
index 5f175c479a46129af4a801c0ec6bba19b11bbec0..a43997c75932b2200f900f3b4ad6711ee134c588 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,6 @@
 NEWS - list of user-visible changes between releases of GNU Libtool
 
-New in 1.4b: 2001-??-??; CVS version 1.4a, Libtool team:
+New in 1.4b: 2001-07-09; CVS version 1.4a, Libtool team:
 * Now bootstraps with autoconf-2.50 and automake-1.4-p4.
 * Always try to build at least a static lib, even if both static and
   shared libs were disabled.
index acfea7183633498e81e876c42e548a9f04a5f4b0..07d59509ed07a679e9fd0f9d18ff81ae0d807ae9 100644 (file)
@@ -126,6 +126,9 @@ Xsed='sed -e s/^X//'
 # double_quote_subst'ed string.
 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 
+# Sed substitution to avoid accidental globbing in evaled expressions
+no_glob_subst='s/\*/\\\*/g'
+
 # Constants:
 rm="rm -f"
 
@@ -2862,7 +2865,12 @@ if AC_TRY_EVAL(ac_compile); then
   # the conftest object file.
   pre_test_object_deps_done=no
 
-  for p in `eval $output_verbose_link_cmd`; do
+  # The `*' in the case matches for architectures that use `case' in
+  # $output_verbose_cmd can trigger glob expansion during the loop
+  # eval without this substitution.
+  output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
+
+  for p in `eval "$output_verbose_link_cmd"`; do
 
     case $p in