summarylogtreecommitdiffstats
path: root/001-lua-version.patch
blob: 065a0458c70182ae683d152a796dfdd6597c07af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/lua/CMakeLists.txt
+++ b/lua/CMakeLists.txt
@@ -15,7 +15,7 @@ IF(NOT LUA_CFLAGS)
 	ENDIF()
 ENDIF()
 
-ADD_DEFINITIONS(-Os -Wall -Werror --std=gnu99 -g3 -I.. ${LUA_CFLAGS})
+ADD_DEFINITIONS(-Os -Wall -Werror -Wno-error=implicit-function-declaration --std=gnu99 -g3 -I.. ${LUA_CFLAGS})
 INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
 LINK_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}/..)
 
@@ -25,7 +25,7 @@ ENDIF(APPLE)
 
 IF(NOT LUAPATH)
 	EXECUTE_PROCESS(
-		COMMAND  lua -e "for k in string.gmatch(package.cpath .. \";\", \"([^;]+)/..so;\") do if k:sub(1,1) == \"/\" then print(k) break end end"
+		COMMAND  lua5.1 -e "for k in string.gmatch(package.cpath .. \";\", \"([^;]+)/..so;\") do if k:sub(1,1) == \"/\" then print(k) break end end"
 		OUTPUT_VARIABLE LUAPATH
 		RESULT_VARIABLE LUA_CHECK_RES
 		OUTPUT_STRIP_TRAILING_WHITESPACE