• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/redis/redis-002-lua-AR.patch
Daniel PriceDaniel Price committed 80a902c407411 Mar 2013
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
​
2
redis-002-lua-AR.patch: Improve redis Makefiles to handle Lua's unusual
3
definition of AR.  Patch originates from:
4
​
5
  Define AR to help with lua cross-compilation
6
  https://github.com/antirez/redis/pull/997
7
  Daniel Price, daniel.price@gmail.com
8
​
9
Signed-off-by: Daniel Price <daniel.price@gmail.com>
10
​
11
=========================================================================
12
diff --git a/deps/Makefile b/deps/Makefile
13
index d58ee56..c9d7116 100644
14
--- a/deps/Makefile
15
+++ b/deps/Makefile
16
@@ -60,10 +60,15 @@ endif
17
 
18
 LUA_CFLAGS+= -O2 -Wall -DLUA_ANSI $(CFLAGS)
19
 LUA_LDFLAGS+= $(LDFLAGS)
20
+# lua's Makefile defines AR="ar rcu", which is unusual, and makes it more
21
+# challenging to cross-compile lua (and redis).  These defines make it easier
22
+# to fit redis into cross-compilation environments, which typically set AR.
23
+AR = ar
24
+ARFLAGS = rcu
25
 
26
 lua: .make-prerequisites
27
    @printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR)
28
-   cd lua/src && $(MAKE) all CFLAGS="$(LUA_CFLAGS)" MYLDFLAGS="$(LUA_LDFLAGS)"
29
+   cd lua/src && $(MAKE) all CFLAGS="$(LUA_CFLAGS)" MYLDFLAGS="$(LUA_LDFLAGS)" AR="$(AR) $(ARFLAGS)"
30
 
31
 .PHONY: lua
32
 
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.