termux-packages/packages/lua/src-Makefile.patch
Fredrik Fornwall 0afc826fc0 lua: Fix patch to not loose SYSCFLAGS
Not having SYSCFLAGS caused LUA_USE_LINUX to be lost, and io.popen
(and probably other things) was not enabled.

Fixes #552.
2016-11-16 18:24:09 -05:00

19 lines
489 B
Diff

diff -u -r ../lua-5.3.0/src/Makefile ./src/Makefile
--- ../lua-5.3.0/src/Makefile 2015-01-05 11:04:52.000000000 -0500
+++ ./src/Makefile 2015-05-24 18:06:15.958404755 -0400
@@ -6,13 +6,8 @@
# Your platform. See PLATS for possible values.
PLAT= none
-CC= gcc -std=gnu99
-CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
+CFLAGS+= $(SYSCFLAGS)
-LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
LIBS= -lm $(SYSLIBS) $(MYLIBS)
-
-AR= ar rcu
-RANLIB= ranlib
RM= rm -f
SYSCFLAGS=