Re: PR43839 almost fixed

Dave Korn <[email protected]>
Newsgroups gmane.comp.gcc.devel,gmane.comp.gcc.java.devel
Message-ID <[email protected]>
On 22/04/2010 03:25, Jack Howarth wrote:

> @@ -267,7 +268,7 @@
>    # to just make the linker find libgcc using -L options.
>    # Similar logic applies to libgcj.
>    if { [istarget "*-*-darwin*"] } {
> -    lappend cxxflags -shared-libgcc -lgcj -liconv
> +    lappend cxxflags "-shared-libgcc -lgcj $libiconv"
>    }

> Can anyone explain why the above syntax ends up adding wrappering
> curly brackets around the evaluated $libiconv.

  Because that's what lappend does: it takes a list of *multiple* arguments,
and appends them as list elements to a variable.  By adding those gratuitous
quotes, you've turned the lappend command from multiple args into a single arg
with embedded spaces; you're thinking of shell scripting, but this is TCL.

  http://www.google.com/search?q=tcl+lappend

brings up various man pages.

    cheers,
      DaveK
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.