summaryrefslogtreecommitdiff
path: root/lua-5.2.2-configure-linux.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-09-28 15:18:49 +0000
committerCoprDistGit <infra@openeuler.org>2024-09-28 15:18:49 +0000
commit28fa671ba5c309440ba99f69b154b82d7eebe278 (patch)
tree967ca223a79b4388bc021f074d756bcb6c051732 /lua-5.2.2-configure-linux.patch
parent420bee8246806ff3b8267afa80720da4f8861180 (diff)
automatic import of lua
Diffstat (limited to 'lua-5.2.2-configure-linux.patch')
-rw-r--r--lua-5.2.2-configure-linux.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/lua-5.2.2-configure-linux.patch b/lua-5.2.2-configure-linux.patch
new file mode 100644
index 0000000..735386a
--- /dev/null
+++ b/lua-5.2.2-configure-linux.patch
@@ -0,0 +1,22 @@
+diff -up lua-5.2.2/configure.ac.linux lua-5.2.2/configure.ac
+--- lua-5.2.2/configure.ac.linux 2013-05-10 15:42:27.269437631 -0400
++++ lua-5.2.2/configure.ac 2013-05-10 15:43:23.530435620 -0400
+@@ -50,6 +50,7 @@ AC_SUBST(READLINE_LIBS)
+ case "$host" in
+ *-mingw*) use_os=win32 ;;
+ *-darwin*) use_os=macosx ;;
++ *-linux*) use_os=linux ;;
+ *) use_os=posix ;;
+ esac
+
+@@ -62,6 +63,10 @@ if test "x$use_os" == "xwin32"; then
+ elif test "x$use_os" == "xmacosx"; then
+ POSIX_DEFS="#define LUA_USE_POSIX"
+ LUA_DL_DEFS="#define LUA_DL_DYLD"
++elif test "x$use_os" == "xlinux"; then
++ POSIX_DEFS="#define LUA_USE_LINUX"
++ LUA_DL_DEFS="#define LUA_DL_DLOPEN"
++ LUA_LIBS="$LUA_LIBS -ldl"
+ elif test "x$use_os" == "xposix"; then
+ POSIX_DEFS="#define LUA_USE_POSIX"
+ LUA_DL_DEFS="#define LUA_DL_DLOPEN"