[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Perhaps USE_LINUX should go away. Was Re: OS X is not (should not be) so different
- From: Rici Lake <lua@...>
- Date: Tue, 03 Apr 2007 16:06:13 -0500
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.