bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking gmp-4.1.4 fails on Solaris 10/x86_64


From: Henrik Grubbström
Subject: Re: Linking gmp-4.1.4 fails on Solaris 10/x86_64
Date: Fri, 3 Mar 2006 19:36:39 +0100 (CET)

On Fri, 3 Mar 2006, Rob Yull wrote:

Hi.

I am experiencing the same problem you did with compiling gmp 4.1.4. I'm pretty new with dealing with gcc and make. You mentioned adding -Wc,-R/usr/sfw/lib/64 to ldflags. Where woud I do this? I tried it in the GMP_LDFLAGS in the Makefile, but got the same results.

If I remember correctly I added it to the real LDFLAGS ie

        make LDFLAGS="-Wc,-m64 -Wc,-R/usr/sfw/lib/64"

I have since found that the reason that -Wc,-R/usr/sfw/lib/64 is needed is due to a bug in /usr/sfw/lib/gcc/i386-pc-solaris2.10/3.4.3/specs:

Replace the *libgcc rule:

%{static|static-libgcc:-R/usr/sfw/lib -lgcc 
-lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-R/usr/sfw/lib 
-lgcc -lgcc_eh}%{shared-libgcc:-R/usr/sfw/lib -lgcc_s%M 
-lgcc}}%{shared:-R/usr/sfw/lib -lgcc_s%M}}}

with:

%{m32:%{static|static-libgcc:-R/usr/sfw/lib -lgcc 
-lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-R/usr/sfw/lib 
-lgcc -lgcc_eh}%{shared-libgcc:-R/usr/sfw/lib -lgcc_s%M 
-lgcc}}%{shared:-R/usr/sfw/lib 
-lgcc_s%M}}}}%{m64:%{static|static-libgcc:-R/usr/sfw/lib/64 -lgcc 
-lgcc_eh}%{!static:%{!static-libgcc:%{!shared:%{!shared-libgcc:-R/usr/sfw/lib/64
 -lgcc -lgcc_eh}%{shared-libgcc:-R/usr/sfw/lib/64 -lgcc_s%M 
-lgcc}}%{shared:-R/usr/sfw/lib/64 -lgcc_s%M}}}}

Thank you,

No problem.

Rob Yull

Hope this helps,

--
Henrik Grubbström                                       address@hidden
Roxen Internet Software AB

BTW: Next time please add some context when you reply to a message
     (especially for old ones like this one (May 22 2005)).

reply via email to

[Prev in Thread] Current Thread [Next in Thread]