lua-users home
lua-l archive

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


On Sat, Apr 6, 2013 at 9:40 AM, David Burgess <dburgess@gmail.com> wrote:
just want to know what #defines, compile/link options are used on (say
linux) and I can then map this pretty quickly to my target platform.

Try this:

// config.h
#define HAVE_STATVS 1
#define HAVE_CRYPT 1
#define VERSION "5.1.20"
#define HAVE_CRYPT_H 1

gcc -c -O2 -Wall -I<lua-include> -I.  -fpic lposix.c -o lposix.o
gcc -shared lposix.o  -lcrypt -lrt  -o posix_c.so

The actual module is posix.lua which loads posix_c

This doesn't include the curses support, of course.