Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rockspec: Use library file given by LuaRocks instead of trying to find it ourselves #545

Merged
merged 1 commit into from
May 12, 2021

Conversation

squeek502
Copy link
Member

LuaRocks can provide LUALIB and LUA_LIBDIR variables which should be better than trying to find the right library file ourselves.

Note: it does not provide them if the LuaRocks config setting link_lua_explicitly is false, so LuaRocks will give the following warnings in that case:

Warning: unmatched variable LUALIB
Warning: unmatched variable LUA_LIBDIR

These warnings happens on Linux and Mac, since they don't link against the Lua libraries. I'm not sure if there's a clean way to avoid the warnings.

Attempts to address #523.

…d it ourselves

LuaRocks can provide LUALIB and LUA_LIBDIR variables which should be better than trying to find the right library file ourselves.

Note: it does not provide them if the LuaRocks config setting `link_lua_explicitly` is false, so LuaRocks will give the following warnings in that case:

    Warning: unmatched variable LUALIB
    Warning: unmatched variable LUA_LIBDIR

These warnings happens on Linux and Mac, since they don't link against the Lua libraries. I'm not sure if there's a clean way to avoid the warnings.

Attempts to address luvit#523.
@squeek502 squeek502 marked this pull request as draft May 12, 2021 07:06
@squeek502 squeek502 marked this pull request as ready for review May 12, 2021 07:24
@squeek502 squeek502 merged commit ee84e41 into luvit:master May 12, 2021
squeek502 added a commit to squeek502/luv that referenced this pull request Jul 1, 2021
squeek502 added a commit to squeek502/luv that referenced this pull request Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants