Waldek Hebisch wrote:
Frank Heckenbach wrote:
Waldek Hebisch wrote:
The driver passes options to collect2 via environment (see `set_collect_gcc_options' in `gpc.c'). The problem is that the driver does not remove options which are invalid for C compiler. In principle other languages should have the same problem, I wonder how (if???) they handle it.
Do you know what collect2 has to compile here at all? Perhaps other languages don't need to, and perhaps we can avoid it as well ...
I do not know more details, all I know is just from quick scan trough collect2 sources. Perhaps we should ask on gcc list?
Can you (Gert) check what it does? Perhaps catch the input file to collect2 and send it to us?
Frank