On Mon, Nov 25, 2013 at 12:52 PM, Shital Patil <email@example.com> wrote:This is weird - it explicitly adds -fPIC for linux:
> Could you please suggest where do I need to do changes in this make file for
> LuaXml ?
# generic platform specific rules:
ARCH = $(shell uname -s)
CFLAGS += -fPIC
LFLAGS = -fPIC -shared
LIBS = $(LIBDIR) $(LIB) -llua -ldl
SHLIBSUFFIX = .so
I had to change the Lua include to the Ubuntu/Debian standard, and
comment out libs (extensions don't need to be explicitly linked
gcc -Os -Wall -c -fPIC -I/usr/include/lua5.1 -c LuaXML_lib.c
gcc -o LuaXML_lib.so -fPIC -shared LuaXML_lib.oand that works fine. See if these lines work for you...