diff options
| author | Felix Fietkau | 2009-10-26 03:01:12 +0000 |
|---|---|---|
| committer | Felix Fietkau | 2009-10-26 03:01:12 +0000 |
| commit | 6f54e6d52aefae207d79bf5c41cd0c27d672e1e3 (patch) | |
| tree | 73909ca8a30d1239fb38e09413ca097bd2c72ca0 | |
| parent | cb1bfb4e3c5a6f6cf00300af75e502ec97882d01 (diff) | |
| download | archive-6f54e6d52aefae207d79bf5c41cd0c27d672e1e3.tar.gz | |
lua: use float instead of double, reduces the gc data structure size by 4 byte => luci processes use 10% less memory
SVN-Revision: 18159
| -rw-r--r-- | package/lua/Makefile | 2 | ||||
| -rw-r--r-- | package/lua/patches/010-lua-5.1.3-lnum-full-260308.patch | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/package/lua/Makefile b/package/lua/Makefile index b418b303ef..4589cfed2c 100644 --- a/package/lua/Makefile +++ b/package/lua/Makefile @@ -83,7 +83,7 @@ endef define Build/Configure endef -TARGET_CFLAGS += -DLUA_USE_LINUX $(FPIC) +TARGET_CFLAGS += -DLUA_USE_LINUX $(FPIC) -std=gnu99 ifneq ($(CONFIG_USE_EGLIBC),) ifeq ($(CONFIG_EGLIBC_OPTION_EGLIBC_UTMP),) diff --git a/package/lua/patches/010-lua-5.1.3-lnum-full-260308.patch b/package/lua/patches/010-lua-5.1.3-lnum-full-260308.patch index 32c39f3b7c..f8d8fc7f1b 100644 --- a/package/lua/patches/010-lua-5.1.3-lnum-full-260308.patch +++ b/package/lua/patches/010-lua-5.1.3-lnum-full-260308.patch @@ -1887,7 +1887,7 @@ Index: lua-5.1.4/src/lnum_config.h +** Default number modes +*/ +#if (!defined LNUM_DOUBLE) && (!defined LNUM_FLOAT) && (!defined LNUM_LDOUBLE) -+# define LNUM_DOUBLE ++# define LNUM_FLOAT +#endif +#if (!defined LNUM_INT16) && (!defined LNUM_INT32) && (!defined LNUM_INT64) +# define LNUM_INT32 |