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 <l...@quinteiro.org> 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 <l...@quinteiro.org
> > <mailto:l...@quinteiro.org>> 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
> >     Kepler-Project@lists.luaforge.net
> >     <mailto:Kepler-Project@lists.luaforge.net>
> >     http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
> >     http://www.keplerproject.org/
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Kepler-Project mailing list
> > Kepler-Project@lists.luaforge.net
> > http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
> > http://www.keplerproject.org/
>
>
> _______________________________________________
> Kepler-Project mailing list
> Kepler-Project@lists.luaforge.net
> http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
> http://www.keplerproject.org/
>
_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to