I see. Well, -fPIC is the correct fix for AMD64 compilation.

I believe it has some impact on performance on 32bit environment -- so it's
probably why it is not enabled by default in all makefiles.

Att.
Luís Eduardo Jason Santos


On Sun, Nov 1, 2009 at 6:39 PM, Jose Quinteiro <[email protected]> wrote:

> I'm not using Luarocks. I'm compiling using the makefile and config file
> in the source distribution.
>
> Thanks,
> Jose.
>
> Luís Eduardo Jason Santos wrote:
> > I thought no Lua library would compile on AMD64 unless you add -fPIC.
> >
> > If I recall correctly, Luarocks adds -fPIC automatically during
> compilation.
> >
> > Att.
> > Luís Eduardo Jason Santos
> >
> >
> > On Sun, Nov 1, 2009 at 5:17 PM, Jose Quinteiro <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     Hello,
> >
> >     Luasql would not compile for me under AMD64 unless I added "-fPIC" to
> >     CFLAGS in "config".  The 32-bit version compiles with that switch as
> >     well.  At least the postgres library works when compiled that way.
> >
> >     Saludos,
> >     Jose.
> >
> >     _______________________________________________
> >     Kepler-Project mailing list
> >     [email protected]
> >     <mailto:[email protected]>
> >     http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
> >     http://www.keplerproject.org/
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Kepler-Project mailing list
> > [email protected]
> > http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
> > http://www.keplerproject.org/
>
>
> _______________________________________________
> Kepler-Project mailing list
> [email protected]
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
> http://www.keplerproject.org/
>
_______________________________________________
Kepler-Project mailing list
[email protected]
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to