diff options
author | Unrud <unrud@outlook.com> | 2020-06-27 02:26:47 +0300 |
---|---|---|
committer | Patrick <tingping@tingping.se> | 2020-06-27 07:21:03 +0300 |
commit | 2ea43be923edb2cef57aa4820b3cae391c440c8f (patch) | |
tree | c3341c2be62431f19e03cd717143e98d0474ab56 | |
parent | ccbee96da681da76990d8149d9a0cf145a522342 (diff) |
lua5.3: Set LUA_COMPAT_5_{1,2} in header file
Fixes #116
-rw-r--r-- | lua5.3/lua-5.3.5.json | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lua5.3/lua-5.3.5.json b/lua5.3/lua-5.3.5.json index 3d838ec..c789fd6 100644 --- a/lua5.3/lua-5.3.5.json +++ b/lua5.3/lua-5.3.5.json @@ -2,7 +2,7 @@ "name": "lua-5.3", "buildsystem": "simple", "build-commands": [ - "make -j $FLATPAK_BUILDER_N_JOBS CFLAGS=\"$CFLAGS -fPIC -DLUA_COMPAT_5_2 -DLUA_COMPAT_5_1 -DLUA_USE_LINUX\" linux", + "make -j $FLATPAK_BUILDER_N_JOBS CFLAGS=\"$CFLAGS -fPIC -DLUA_USE_LINUX\" linux", "make TO_LIB=liblua.so.5.3.5 INSTALL_TOP=$FLATPAK_DEST install", "ln -sf liblua.so.5.3.5 $FLATPAK_DEST/lib/liblua.so", "ln -sf liblua.so.5.3.5 $FLATPAK_DEST/lib/liblua.so.5.3", @@ -32,7 +32,8 @@ "commands": [ "sed -i \"s|/usr/local/|$FLATPAK_DEST/|;s|LUA_IDSIZE 60|LUA_IDSIZE 512|\" src/luaconf.h", "# Lua 5.3.5 has wrong release version in its Makefile. Fix it.", - "sed 's/^R= \$V.4/R= \$V.5/' -i Makefile" + "sed 's/^R= \$V.4/R= \$V.5/' -i Makefile", + "sed -i '12 a\\\\n#define LUA_COMPAT_5_1\\n#define LUA_COMPAT_5_2' src/luaconf.h" ] } ], |