ld support arguments to multiple-letter options being passed in two ways:
* -opt=arg
* -opt arg
Unfortunetely, libtool generate command line of the second form. Since tcc
didn't support this form yet, I did a commit to add the support. The way it is
done is to concatenate all -Wl options into one and then pass it to
tcc_set_linker. I also added a logic in tcc_set_linker to cut at the next
comma (if there is one) to have a proper error message in case of wrong
option.In other words, tcc -o foo -Wl,-rpathstuff,--oformat,coff will correctly says "unsupported linker option '-rpathstuff'" instead of "unsupported linker option '-rpathstuff,--oformat,coff'. Best regards, Thomas Preud'homme
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Tinycc-devel mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/tinycc-devel
