31 lines
975 B
Diff
31 lines
975 B
Diff
diff --git a/core/xmake.sh b/core/xmake.sh
|
|
index b21e34efe..f391618de 100755
|
|
--- a/core/xmake.sh
|
|
+++ b/core/xmake.sh
|
|
@@ -87,13 +87,13 @@ option_find_lua() {
|
|
local ldflags=""
|
|
local cflags=""
|
|
option "lua"
|
|
- cflags=`pkg-config --cflags lua5.4 2>/dev/null`
|
|
- ldflags=`pkg-config --libs lua5.4 2>/dev/null`
|
|
+ cflags=`pkg-config --cflags lua 2>/dev/null`
|
|
+ ldflags=`pkg-config --libs lua 2>/dev/null`
|
|
if test_z "${cflags}"; then
|
|
- cflags="-I/usr/include/lua5.4"
|
|
+ cflags="-I/usr/include"
|
|
fi
|
|
if test_z "${ldflags}"; then
|
|
- ldflags="-llua5.4"
|
|
+ ldflags="-llua"
|
|
fi
|
|
add_cflags "${cflags}"
|
|
add_ldflags "${ldflags}"
|
|
@@ -152,7 +152,7 @@ option_find_lz4() {
|
|
# the sv option
|
|
option "sv"
|
|
add_cfuncs "semver_tryn"
|
|
- add_cincludes "semver.h"
|
|
+ add_cincludes "sv/semver.h"
|
|
add_links "sv"
|
|
before_check "option_find_sv"
|
|
option_end
|