libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple quoting fix


From: Steve Ellcey
Subject: Re: Simple quoting fix
Date: Mon, 14 Jan 2002 15:59:37 -0800 (PST)

Well, that will teach me to send off a quick fix without testing.  My
earlier change was fine, it doesn't break anything, but it didn't fix
what I wanted it to fix either.

Here is another patch, with that change plus some more quoting fixes
that really do fix the problem I had building GCC.

Steve Ellcey
address@hidden


2002-01-14  Steve Ellcey  <address@hidden>
        * libtool.m4: Put $CC,$LTCC,$MAGIC_CMD,$STRIP in quotes.


--- libtool.orig/libtool.m4     Mon Jan 14 14:43:31 2002
+++ libtool/libtool.m4  Mon Jan 14 15:53:28 2002
@@ -152,7 +152,7 @@ test -z "$AR" && AR=ar
 test -z "$AR_FLAGS" && AR_FLAGS=cru
 test -z "$AS" && AS=as
 test -z "$CC" && CC=cc
-test -z "$LTCC" && LTCC=$CC
+test -z "$LTCC" && LTCC="$CC"
 test -z "$DLLTOOL" && DLLTOOL=dlltool
 test -z "$LD" && LD=ld
 test -z "$LN_S" && LN_S="ln -s"
@@ -1419,7 +1419,7 @@ if test -f "$ltmain" && test -n "$tagnam
     if test -z "$LTCC"; then
       AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
     else
-      AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
+      AC_MSG_WARN([using `LTCC="$LTCC"', extracted from `$ofile'])
     fi
   fi
 
@@ -3319,7 +3319,7 @@ AR=$lt_AR
 AR_FLAGS=$lt_AR_FLAGS
 
 # A C compiler.
-LTCC=$LTCC
+LTCC="$LTCC"
 
 # A language-specific compiler.
 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
@@ -3337,10 +3337,10 @@ LN_S=$lt_LN_S
 NM=$lt_NM
 
 # A symbol stripping program
-STRIP=$STRIP
+STRIP="$STRIP"
 
 # Used to examine libraries when file_magic_cmd begins "file"
-MAGIC_CMD=$MAGIC_CMD
+MAGIC_CMD="$MAGIC_CMD"
 
 # Used on cygwin: DLL creation program.
 DLLTOOL="$DLLTOOL"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]