]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Properly disable LUA_USE_DLOPEN for bootstrap flua
authorkevans <kevans@FreeBSD.org>
Fri, 14 Aug 2020 02:40:17 +0000 (02:40 +0000)
committerkevans <kevans@FreeBSD.org>
Fri, 14 Aug 2020 02:40:17 +0000 (02:40 +0000)
commitd2c07dbc4638a6d5e69e4a0f9bc205b9f5614635
tree02738dd3789757282d4f249a6c793ccc4775918d
parent8af5f7bc9c463dc8618dbcf1dae1b8841d426de9
Properly disable LUA_USE_DLOPEN for bootstrap flua

flua does have some specific bits that will include luaconf.h, but the
definition of LUA_USE_DLOPEN for those won't matter. This belongs in liblua
instead.

To expand on my previous commit, which was a little sparse with details,
it's not really safe to allow LUA_USE_DLOPEN with host lib paths being used.
The host system could have an entirely different lua version and this could
cause us to crash and burn.

If we want to revive this later, we need to make sure to define c module
paths inside OBJDIR that are compiled against whatever version we've
bootstrapped.

Pointy hat: kevans
lib/liblua/Makefile
libexec/flua/Makefile