> GCC 4.1 for example does have -mrelax on at least some targets on which
> --relax does something, but not everywhere, so the portable version
> would seem to be -Wl,--relax.

Yes, that would be solution if we were trying to pass --relax to the linker ;-)

But we need to do something different - we need to prevent GCC from silently
passing --relax to the linker, which is quite a different problem :-(

On the relevant targets, GCC avoids passing '--relax' only if it sees '-r' or
'-mno-relax' on the command-line.  As testing for support for -mno-relax is too
complicated, we just decided (at least for this release) to simply use '-r'
(like in all previous releases) when using GCC for partial linking.

Better ideas would be welcome.

Thanks


_______________________________________________
Gnustep-dev mailing list
Gnustep-dev@gnu.org
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to