0002-lua-update-Makefile-to-use-environment-build-setting.patch 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. From 45ae5eb5c3482054073e06ab1a78e0aa9b96447f 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. OE-specific parameters, instead of overriding all of these simply use
  6. the ones that are already passed in. Also configure for only Linux...
  7. Upstream-Status: Pending
  8. Signed-off-by: Venture Research <tech@ventureresearch.com>
  9. Updated to work with 3.0.x
  10. Signed-off-by: Armin Kuster <akust808@gmail.com>
  11. updated to work wtih 6.2.1
  12. Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
  13. ---
  14. deps/Makefile | 1 -
  15. deps/lua/Makefile | 1 -
  16. deps/lua/src/Makefile | 16 ++++++----------
  17. 3 files changed, 6 insertions(+), 12 deletions(-)
  18. diff --git a/deps/Makefile b/deps/Makefile
  19. index 3bf0363..fd8765a 100644
  20. --- a/deps/Makefile
  21. +++ b/deps/Makefile
  22. @@ -94,7 +94,6 @@ endif
  23. # lua's Makefile defines AR="ar rcu", which is unusual, and makes it more
  24. # challenging to cross-compile lua (and redis). These defines make it easier
  25. # to fit redis into cross-compilation environments, which typically set AR.
  26. -AR=ar
  27. ARFLAGS=rc
  28. lua: .make-prerequisites
  29. diff --git a/deps/lua/Makefile b/deps/lua/Makefile
  30. index 209a132..72f4b2b 100644
  31. --- a/deps/lua/Makefile
  32. +++ b/deps/lua/Makefile
  33. @@ -33,7 +33,6 @@ INSTALL_DATA= $(INSTALL) -m 0644
  34. # Utilities.
  35. MKDIR= mkdir -p
  36. -RANLIB= ranlib
  37. # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========
  38. diff --git a/deps/lua/src/Makefile b/deps/lua/src/Makefile
  39. index f3bba2f..1555ec0 100644
  40. --- a/deps/lua/src/Makefile
  41. +++ b/deps/lua/src/Makefile
  42. @@ -5,18 +5,14 @@
  43. # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
  44. # Your platform. See PLATS for possible values.
  45. -PLAT= none
  46. +PLAT= linux
  47. -CC?= gcc
  48. -CFLAGS= -O2 -Wall $(MYCFLAGS)
  49. -AR= ar rcu
  50. -RANLIB= ranlib
  51. -RM= rm -f
  52. -LIBS= -lm $(MYLIBS)
  53. -
  54. -MYCFLAGS=
  55. +MYCFLAGS=-DLUA_USE_LINUX
  56. MYLDFLAGS=
  57. -MYLIBS=
  58. +MYLIBS=-Wl,-E -ldl -lreadline -lhistory -lncurses
  59. +
  60. +CFLAGS += $(MYCFLAGS)
  61. +LIBS += -lm $(MYLIBS)
  62. # == END OF USER SETTINGS. NO NEED TO CHANGE ANYTHING BELOW THIS LINE =========