Riccardo,
sorry that I had not replied to this - it looks good.
Of course, we now need testing with various compilers
on various platforms. We switched from -r to -Wl,-r
to have it work properly on both GCC and clang. Hopefully
-mno-relax works with clang too.
Thanks
-----Original Message-----
From: "Riccardo Mottola"<address@hidden>
Sent: Friday, 1 April, 2011 15:34
To: address@hidden
Subject: sparc: ld: --relax and -r may not be used together
Hi,
I get an error when building on NetBSD on sparc, namely:
ld: --relax and -r may not be used together
By looking around, I found this post:
http://hackage.haskell.org/trac/ghc/ticket/3791
we have exactly the same problem. Since it is SPARC specific it explains
why it doesn't fail elsewhere. I don't know why it does work on
OpenBSD/sparc, but perhaps the gcc defaults are different.
The only fix I came up with is to to modify target.make to add
-mno-relax at every -Wl,r occourence. On platforms different from SPARC
it should have no effect.
I propose the applied patch, i have not yet commited it. What do you think?
Riccardo