This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: libgcj/20693: javax-imageio.lo failed to build
- From: "H. J. Lu" <hjl at lucon dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 30 Mar 2005 12:24:43 -0800
- Subject: PATCH: libgcj/20693: javax-imageio.lo failed to build
The problem is libtool failed to add a backslash to the last argument.
If the last argument is something like
javax/imageio/spi/ServiceRegistry$1.class
shell will expand "$1" before passing it to compiler. This patch makes
sure that a backslash is added to each argument.
H.J.
---
2005-03-30 H.J. Lu <hongjiu.lu@intel.com>
PR libgcj/20693
* ltmain.sh: Properly add backslash to arguments.
--- ltmain.sh.dollar 2005-03-29 16:10:34.000000000 -0800
+++ ltmain.sh 2005-03-30 12:15:44.095041493 -0800
@@ -423,14 +423,13 @@ if test -z "$show_help"; then
# Accept the current argument as the source file.
lastarg="$srcfile"
- srcfile="$arg"
-
- # Aesthetically quote the previous argument.
# Backslashify any backslashes, double quotes, and dollar signs.
# These are the only characters that are still specially
# interpreted inside of double-quoted scrings.
- lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
+ srcfile=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
+
+ # Aesthetically quote the previous argument.
# Double-quote args containing other shell metacharacters.
# Many Bourne shells cannot handle close brackets correctly