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
luaposix does not cross compile properly #367
Comments
I don't have any cross compilation environment or way to develop/test code to support it. Note that the To answer your questions: LUA_INCDIR should work as is, unless you are building for a different version of Lua. LUA_LIBDIR should point to the directory for the cross-compiled Lua libraries libposix should be linked against. LUA_BINDIR is where Lua binaries that will run on the host machine are. |
I did the quickest fix I could think of add a
|
The right fix would be to use pkgconf:
|
would it be sufficient to add a section to the README for cross compilation recommending building with
Or would it be better to get that into the rockspec based on some condition set for luarocks? |
I don't think so, not patching should be required.
pkgconf/pkg-config should already be available on any system doing builds as many pkgs use it. Also, some cross systems replaces pkg-config with a special cross version which is why most/all You might need to do:
and then have:
in luke script |
Consider this log snipped:
hardcodes -I/usr/include/lua5.4
This comes from luke line:
I guess inc dir can be just
LUA_INCDIR=$LUAVERSION
?Not sure what to with BINDIR/LIBDIR though? Just remove them?
The text was updated successfully, but these errors were encountered: