summaryrefslogtreecommitdiffstats
path: root/3rdparty/crosscompile_lua.patch
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/crosscompile_lua.patch')
-rw-r--r--3rdparty/crosscompile_lua.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/3rdparty/crosscompile_lua.patch b/3rdparty/crosscompile_lua.patch
new file mode 100644
index 0000000..3d822e7
--- /dev/null
+++ b/3rdparty/crosscompile_lua.patch
@@ -0,0 +1,24 @@
+--- a/lua/src/Makefile 2017-10-03 15:32:07.481452158 +0200
++++ b/lua/src/Makefile 2017-10-03 15:31:41.267283762 +0200
+@@ -6,13 +6,14 @@
+ # Your platform. See PLATS for possible values.
+ PLAT= none
+
+-CC= gcc -std=gnu99
+-CFLAGS= -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
+-LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
+-LIBS= -lm $(SYSLIBS) $(MYLIBS)
++CC?= gcc
++CFLAGS+= -std=gnu99 -fPIC -O2 -Wall -Wextra -DLUA_COMPAT_5_2 $(SYSCFLAGS) $(MYCFLAGS)
++LDFLAGS+= $(SYSLDFLAGS) $(MYLDFLAGS)
++LIBS+= -lm $(SYSLIBS) $(MYLIBS)
+
+-AR= ar rcu
+-RANLIB= ranlib
++AR?= ar
++AR+= rcu
++RANLIB?= ranlib
+ RM= rm -f
+
+ SYSCFLAGS=
+