diff options
author | Romain Forlot <romain.forlot@iot.bzh> | 2017-10-05 01:38:18 +0200 |
---|---|---|
committer | Romain Forlot <romain.forlot@iot.bzh> | 2017-12-14 11:00:25 +0100 |
commit | 8df3e437f941912067231250ff5695b8a3a7fd92 (patch) | |
tree | c812fb252ad0f8a48041aff28b7fc60a75f245d1 /3rdparty/crosscompile_lua.patch | |
parent | 8364673ab93eb484e25c7c4776e5d705b73330b4 (diff) |
LUA lib and bin embedded in project
Change-Id: I1a61b49f55e4daa305800e754a14b6041aa81b34
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to '3rdparty/crosscompile_lua.patch')
-rw-r--r-- | 3rdparty/crosscompile_lua.patch | 24 |
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= + |