how do I force PIC code in libgmp.a on MacOSX (Intel)...?
Steve M. Robbins
steven.robbins at videotron.ca
Mon Apr 17 21:39:33 CEST 2006
On Mon, Apr 17, 2006 at 10:48:58AM -0700, Alex Martelli wrote:
> 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...?
If the Makefiles are well-behaved, you can use
./configure .... CFLAGS="bla bla bla"
you might also need to set CXXFLAGS (for C++ compilation) in the same way.
-Steve
More information about the gmp-bugs
mailing list