lua-users home
lua-l archive

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



On 5 Nov 2008, at 08:55, Sam Roberts wrote:

Make sure NOT to build lua with the OSX specific lua Makefile targets,
it causes lua to use deprecated OSX APIs.



I have found it practical to compile lua itself on MacOSX with:

macosx:
    $(MAKE) all MYCFLAGS="-DLUA_USE_LINUX -dynamic" MYLIBS="-lreadline"

and (dynamic) C-modules with gcc-parameters:

    -bundle -undefined dynamic_lookup

and then this environment variable appears to be of use:

    MACOSX_DEPLOYMENT_TARGET = 10.5

Hope this helps.

Hans van der Meer