lua-users home
lua-l archive

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


> I'm having trouble figuring out what I've got to change in the
> makefile so I can generate a 64 bit shared library.

Add -fPIC to CFLAGS and to MYLDFLAGS. Then do this:
	make clean linux
	rm lua.o luac.o print.o
	cc -shared -o liblua.so *.o

I'm not sure whether you need -fPIC in the last line or not.