This is the mail archive of the gcc-patches@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: [PATCH] Fix PR43839 - libjava incorrectly uses -liconv in testsuite


>>>>> "Dave" == Dave Korn <dave.korn.cygwin@googlemail.com> writes:

>> -    lappend cxxflags -shared-libgcc -lgcj -liconv
>> +    eval lappend cxxflags "-shared-libgcc -lgcj $libiconv"

Dave> ... if you don't add either the quotes or the eval, doesn't it
Dave> "just work"?

If $libiconv can be empty, then the plain form will add an empty element
to the list.  The eval+quotes form won't.

% set empty ""
% lappend x a b c $empty
a b c {}
% eval lappend y "a b c $empty"
a b c

Tom


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