Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame^] | 1 | From 394108035d350ae662a431c80131f812b5f72dff Mon Sep 17 00:00:00 2001 |
| 2 | From: Venture Research <tech@ventureresearch.com> |
| 3 | Date: Fri, 8 Feb 2013 20:22:19 -0600 |
| 4 | Subject: [PATCH] lua: update Makefile to use environment build settings |
| 5 | |
| 6 | OE-specific parameters, instead of overriding all of these simply use |
| 7 | the ones that are already passed in. Also configure for only Linux... |
| 8 | |
| 9 | Signed-off-by: Venture Research <tech@ventureresearch.com> |
| 10 | |
| 11 | Updated to work with 3.0.x |
| 12 | |
| 13 | Signed-off-by: Armin Kuster <akust808@gmail.com> |
| 14 | |
| 15 | --- |
| 16 | deps/lua/src/Makefile | 18 +++++++----------- |
| 17 | 1 file changed, 7 insertions(+), 11 deletions(-) |
| 18 | |
| 19 | Index: redis-3.0.2/deps/lua/src/Makefile |
| 20 | =================================================================== |
| 21 | --- redis-3.0.2.orig/deps/lua/src/Makefile |
| 22 | +++ redis-3.0.2/deps/lua/src/Makefile |
| 23 | @@ -5,18 +5,14 @@ |
| 24 | # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT ======================= |
| 25 | |
| 26 | # Your platform. See PLATS for possible values. |
| 27 | -PLAT= none |
| 28 | +PLAT= linux |
| 29 | |
| 30 | -CC?= gcc |
| 31 | -CFLAGS= -O2 -Wall $(MYCFLAGS) |
| 32 | -AR= ar rcu |
| 33 | -RANLIB= ranlib |
| 34 | -RM= rm -f |
| 35 | -LIBS= -lm $(MYLIBS) |
| 36 | - |
| 37 | -MYCFLAGS= |
| 38 | +MYCFLAGS=-DLUA_USE_LINUX |
| 39 | MYLDFLAGS= |
| 40 | -MYLIBS= |
| 41 | +MYLIBS=-Wl,-E -ldl -lreadline -lhistory -lncurses |
| 42 | + |
| 43 | +CFLAGS += $(MYCFLAGS) |
| 44 | +LIBS += -lm $(MYLIBS) |
| 45 | |
| 46 | # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE ========= |
| 47 | |
| 48 | Index: redis-3.0.2/deps/Makefile |
| 49 | =================================================================== |
| 50 | --- redis-3.0.2.orig/deps/Makefile |
| 51 | +++ redis-3.0.2/deps/Makefile |
| 52 | @@ -63,7 +63,6 @@ LUA_LDFLAGS+= $(LDFLAGS) |
| 53 | # lua's Makefile defines AR="ar rcu", which is unusual, and makes it more |
| 54 | # challenging to cross-compile lua (and redis). These defines make it easier |
| 55 | # to fit redis into cross-compilation environments, which typically set AR. |
| 56 | -AR=ar |
| 57 | ARFLAGS=rcu |
| 58 | |
| 59 | lua: .make-prerequisites |
| 60 | Index: redis-3.0.2/deps/lua/Makefile |
| 61 | =================================================================== |
| 62 | --- redis-3.0.2.orig/deps/lua/Makefile |
| 63 | +++ redis-3.0.2/deps/lua/Makefile |
| 64 | @@ -33,7 +33,6 @@ INSTALL_DATA= $(INSTALL) -m 0644 |
| 65 | |
| 66 | # Utilities. |
| 67 | MKDIR= mkdir -p |
| 68 | -RANLIB= ranlib |
| 69 | |
| 70 | # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE ========= |
| 71 | |