That is what I missed. Thanks.
This patch should work.
Sure, but it makes the mess even worse. You should instead:
- in config/t-svr4, change the two CFLAGS assignments to use +=
- in config/i386/t-sol2, change the CRTSTUFF_T_CFLAGS assignment to "+=
-O2" and remove the TARGET_LIBGCC2_CFLAGS assignment
- in config.gcc, change
tmake_file="t-sol2 i386/t-sol2 t-svr4"
to
tmake_file="${tmake_file} t-sol2 i386/t-sol2 t-svr4"
and move it at the end of the case stanza, i.e. before
;;
i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
Paolo