This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]