This is the mail archive of the gcc@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]

Re: PR43839 almost fixed


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



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