diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2016-01-03 22:01:32 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2016-01-06 10:58:21 (GMT) |
commit | fc13f478c6b980996b18fce1c2e3fe2902e8c913 (patch) | |
tree | a0a6fc93b8c28805e24891cd7d5ba49402a801ba /src/lua-1-fixes.patch | |
parent | 989ea9ad3d642c2b928672ae24abd69e3b293e47 (diff) | |
download | mxe-fc13f478c6b980996b18fce1c2e3fe2902e8c913.zip mxe-fc13f478c6b980996b18fce1c2e3fe2902e8c913.tar.gz mxe-fc13f478c6b980996b18fce1c2e3fe2902e8c913.tar.bz2 |
lua: disable readline on linux, macosx and freebsd
fix #1060
Diffstat (limited to 'src/lua-1-fixes.patch')
-rw-r--r-- | src/lua-1-fixes.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/lua-1-fixes.patch b/src/lua-1-fixes.patch new file mode 100644 index 0000000..e205963 --- /dev/null +++ b/src/lua-1-fixes.patch @@ -0,0 +1,53 @@ +This file is part of MXE. +See index.html for further information. + +Contains ad hoc patches for cross building. + +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Boris Nagaev <bnagaev@gmail.com> +Date: Mon, 4 Jan 2016 01:00:02 +0300 +Subject: [PATCH] disable readline on linux, macosx and freebsd + + +diff --git a/src/Makefile b/src/Makefile +index 1111111..2222222 100644 +--- a/src/Makefile ++++ b/src/Makefile +@@ -102,15 +102,15 @@ c89: + + + freebsd: +- $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -lreadline" ++ $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" + + generic: $(ALL) + + linux: +- $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl -lreadline" ++ $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_LINUX" SYSLIBS="-Wl,-E -ldl" + + macosx: +- $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" SYSLIBS="-lreadline" CC=cc ++ $(MAKE) $(ALL) SYSCFLAGS="-DLUA_USE_MACOSX" CC=cc + + mingw: + $(MAKE) "LUA_A=lua53.dll" "LUA_T=lua.exe" \ +diff --git a/src/luaconf.h b/src/luaconf.h +index 1111111..2222222 100644 +--- a/src/luaconf.h ++++ b/src/luaconf.h +@@ -61,14 +61,12 @@ + #if defined(LUA_USE_LINUX) + #define LUA_USE_POSIX + #define LUA_USE_DLOPEN /* needs an extra library: -ldl */ +-#define LUA_USE_READLINE /* needs some extra libraries */ + #endif + + + #if defined(LUA_USE_MACOSX) + #define LUA_USE_POSIX + #define LUA_USE_DLOPEN /* MacOS does not need -ldl */ +-#define LUA_USE_READLINE /* needs an extra library: -lreadline */ + #endif + + |