Tmp Fix lua for native build
authorRonan Le Martret <ronan@fridu.net>
Wed, 14 May 2014 08:14:16 +0000 (10:14 +0200)
committerRonan Le Martret <ronan@fridu.net>
Wed, 14 May 2014 08:18:31 +0000 (10:18 +0200)
Change-Id: I1ced16097d3a940e2191f1a537ef2bd97f269eaf

recipes-tizen/lua/lua-extraconf.inc

index e69de29..8d8005a 100644 (file)
@@ -0,0 +1,16 @@
+do_compile() {
+ cd ${S}
+ LANG=C
+ export LANG
+ unset DISPLAY
+ CFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables" ; export CFLAGS ;
+ CXXFLAGS="${CXXFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables}" ; export CXXFLAGS ;
+ FFLAGS="${FFLAGS:--O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -I%_fmoddir}" ; export FFLAGS ;
+ LD_AS_NEEDED=1; export LD_AS_NEEDED ;
+
+ sed -i 's:LUA_ROOT2 "LIBDIR/lua/5.1/":LUA_ROOT2 \"lib/lua/5.1/":' src/luaconf.h
+ make -j16 -C src CC="${CC}" MYCFLAGS="-O2 -g -m64 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -fPIC -DLUA_USE_LINUX" MYLDFLAGS='${LDFLAGS}' MYLIBS="-Wl,-E -ldl -lreadline -lhistory -lncurses" V=5.1 all
+
+
+
+}
\ No newline at end of file