Hi Nicola,

I forgot to mention that I commited the patch, but then today I read your message later about gcc 4.6. Since the majority of people use x86 it is perhaps better to back it up? Or else, find a way for configure to detect and handle this.

Thanks,

Riccardo

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"<[email protected]>
Sent: Friday, 1 April, 2011 15:34
To: [email protected]
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


_______________________________________________
Gnustep-dev mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnustep-dev

Reply via email to