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 [EMAIL PROTECTED]
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)).
_______________________________________________
Bug-gmp mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gmp