Skip to content

Commit

Permalink
lua: Correctly build in compatibility layers
Browse files Browse the repository at this point in the history
The environment variables for the Lua compatibility was changed in
Lua 5.3, and overlooked in the Linux From Scratch book when updating the
Lua version [1], probably using the recipe for Lua 5.2.

>  MYCFLAGS="-DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1": This environment
>  variable includes compatibility layers with Lua 5.1 and 5.2 in the
>  build.

Fix this, so that the VLC media player, depending an Lua 5.1, builds and
works correctly.

[1] http://www.linuxfromscratch.org/blfs/view/7.10/general/lua.html
  • Loading branch information
pmenzel committed Sep 14, 2016
1 parent 8c37a39 commit eda7a83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua.be0
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ mee_configure() {
mee_build() {
sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h

bee_build linux "MYCFLAGS=-fPIC -DLUA_COMPAT_ALL"
bee_build linux "MYCFLAGS=-fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1"
cat >lua.pc <<-EOF
V=${PKGVERSION[2]}
R=${PKGVERSION}
Expand Down

0 comments on commit eda7a83

Please sign in to comment.