lua-users home
lua-l archive

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


Luiz Henrique de Figueiredo wrote:

Anyway, it seems that using dlopen in Mac OS X 10.4 is ok. Great.
Again, the correct Makefile line for building Lua to use dlopen is
	$(MAKE) all MYCFLAGS="-DLUA_USE_LINUX" MYLIBS="-lreadline"

but perhaps LUA_USE_LINUX is confusing... (LUA_USE_LINUX just means
LUA_USE_POSIX, LUA_USE_DLOPEN, and LUA_USE_READLINE).

Apparently not all Linux distros have dlopen(); there was a query
on #lua the other day from someone using linuxppc on an
embedded ARM appliance with no shared object implementation.

It might well be better if LUA_USE_LINUX were removed from luaconf.h,
and the correct constellation of -D flags put in the Makefile instead.
That might make it easier all round.