On Aug 24, 2009, at 11:31 PM, Nils Bruin wrote:

>
> On Aug 24, 9:02 pm, Robert Bradshaw <rober...@math.washington.edu>
> wrote:
>
>> I think you can do
>>
>> -Wl,-Bstatic  -lgmp
>>
>> at the end.
>
> Wonderful, yes that makes the linker look for libgmp.a rather than
> ligmp.so. However, the libgmp.a that mpir builds yields the "recompile
> with -fPIC" complaint in this situation. I guess for our purposes, we
> would need to build a libgmp.a out of the *.lo files rather than the
> *.o files. I have no idea how to do that (naive tries failed miserably
> and google hasn't been very helpful either).

I think you can still get an -fPIC libgmp.a directly from the same .o  
files that the libgmp.so uses. Have you tried just adding that flag  
to mpir's make file?

- Robert



--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to