lua-users home
lua-l archive

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


>>>>> "Russell" == Russell Haley <russ.haley@gmail.com> writes:

 Russell> - Andrew: luaconf.h indicates to me that LUA_USE_READLINE is
 Russell> not required when using LUA_USE_LINUX?

This seems to have changed from 5.3 to 5.4 - 5.3's luaconf.h defines
LUA_USE_READLINE, but 5.4's does not.

 Russell> Also, -fPIC is required for Arm

-fPIC is required to build a shared object, which the distributed
makefiles do not do. Nothing to do with arm vs. intel; the build works
fine without -fPIC on arm (at least on 32-bit arm, which is all I
currently have available).

The port build builds a shared library, so it has to add -fPIC for that
to work.

 Russell> - There was a lengthy discussion (on my part. tee hee) which
 Russell> concluded that dlopen library (or whatever it's called) is
 Russell> only required on glibc. My less than stellar memory says that
 Russell> I concluded (potentially) LUA_USE_DLOPEN isn't needed on ANY
 Russell> of the BSDs or OSX.

This is wrong. LUA_USE_DLOPEN is what tells Lua that dlopen() and
dlsym() are available for dynamic loading; if you don't define it, then
you won't be able to require C modules. (The only alternate loading
scheme supported is LUA_DL_DLL for Windows.)

What's different between freebsd and linux here is that linux requires
-ldl at link time and freebsd does not.

-- 
Andrew.