how do I force PIC code in libgmp.a on MacOSX (Intel)...?

Alex Martelli aleaxit at gmail.com
Mon Apr 17 19:48:58 CEST 2006


On 4/17/06, Sylvain Pion <Sylvain.Pion at sophia.inria.fr> wrote:
> Alex Martelli wrote:
> > Does anybody have suggestions on how I should go about making
> > libgmp.a suitable for building a .so bundle (i.e., PIC) in this
> > environment?
>
> Did you try to add -fno-common to the CFLAGS ?

No, I had tried -fPIC but not -fno-common yet -- I'll try that tonight
when I'm next to a mac-intel again, thanks for the suggestion.

The way I'm modifying CFLAGS currently is to edit all Makefile's by
hand -- what's the "proper" way, I assume some option to be passed to
./configure...?


Thanks,

Alex


More information about the gmp-bugs mailing list