lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On Mon, Nov 25, 2013 at 12:52 PM, Shital Patil <> wrote:
> Thanks
> Could you please suggest where do I need to do changes in this make file for
> LuaXml ?

This is weird - it explicitly adds -fPIC for linux:

# generic platform specific rules:
ARCH            = $(shell uname -s)
ifeq ($(ARCH),Linux)
  LFLAGS =  -fPIC -shared
  LIBS          = $(LIBDIR) $(LIB) -llua -ldl

I had to change the Lua include to the Ubuntu/Debian standard, and
comment out libs (extensions don't need to be explicitly linked
against Lua):

gcc -Os -Wall -c  -fPIC -I/usr/include/lua5.1 -c LuaXML_lib.c
gcc -o -fPIC -shared LuaXML_lib.o

and that works fine. See if these lines work for you...

steve d.