libtool-patches
[Top][All Lists]
Advanced

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

Quote LTCC in HEAD


From: libtool-patches
Subject: Quote LTCC in HEAD
Date: Fri, 21 Sep 2001 02:00:36 -0500
User-agent: Mutt/1.2.5i

LTCC should be quoted because, on HP-UX 10.20, if CC=cc and the user
does not specify CFLAGS="-Ae", then it will be added automatically by
autoconf (AC_PROG_CC_STDC macro). In this case, we get:
  LTCC=cc -Ae
because autoconf adds "-Ae" to CC.

-- 
albert chin (address@hidden)

-- snip snip
2001-09-21  Albert Chin-A-Young <address@hidden>

        * libtool.m4: quote LTCC because autoconf AC_PROG_CC_STDC
        macro might add to $CC if options needed by compiler to
        grok ANSI.

Index: libtool.m4
===================================================================
RCS file: /cvsroot/libtool/libtool/libtool.m4,v
retrieving revision 1.233
diff -u -3 -p -r1.233 libtool.m4
--- libtool.m4  2001/09/21 03:06:40     1.233
+++ libtool.m4  2001/09/21 06:43:06
@@ -3172,7 +3173,7 @@ if test -f "$ltmain"; then
   # Now quote all the things that may contain metacharacters while being
   # careful not to overquote the AC_SUBSTed values.  We take copies of the
   # variables and quote the copies for generation of the libtool script.
-  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S NM SHELL \
+  for var in echo old_CC old_CFLAGS AR AR_FLAGS RANLIB LN_S LTCC NM SHELL \
     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
     deplibs_check_method reload_flag reload_cmds need_locks \
@@ -3319,7 +3320,7 @@ AR=$lt_AR
 AR_FLAGS=$lt_AR_FLAGS
 
 # A C compiler.
-LTCC=$LTCC
+LTCC=$lt_LTCC
 
 # A language-specific compiler.
 CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)



reply via email to

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