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