[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: building lua 5.1.4 as a shared lib on os x and intel x86_64
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Mon, 17 Aug 2009 18:55:36 -0300
> 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.