lua-users home
lua-l archive

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

Rici Lake wrote:
> 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
> 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.

I agree with Rici, removing that flag is the best solution.
Alternatively you could rename it LUA_USE_FULLFEATUREDUNIX.