Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Define AR to help with lua cross-compilation #997

Closed
wants to merge 1 commit into from

1 participant

@danielbprice

A simple Makefile fix to help fit redis into cross-compilation environments. Thanks for your consideration.

@mattsta mattsta referenced this pull request from a commit in mattsta/redis
Daniel Price Define AR to help with lua cross-compilation
Closes #997
6cf53e0
@mattsta mattsta referenced this pull request from a commit in mattsta/redis
Daniel Price Define AR to help with lua cross-compilation
Closes #997
00ff893
@mattsta mattsta referenced this pull request
Closed

ALL simple issue fixes #1906

@mattsta mattsta referenced this pull request from a commit in mattsta/redis
Daniel Price Define AR to help with lua cross-compilation
Closes #997
45944e4
@antirez antirez closed this pull request from a commit
Daniel Price Define AR to help with lua cross-compilation
Closes #997
b57a4d0
@antirez antirez closed this in b57a4d0
@antirez antirez referenced this pull request from a commit
Daniel Price Define AR to help with lua cross-compilation
Closes #997
3e6578e
@antirez antirez referenced this pull request from a commit
Daniel Price Define AR to help with lua cross-compilation
Closes #997
1aff711
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 12, 2013
  1. Define AR to help with lua cross-compilation

    Daniel Price authored
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 1 deletion.
  1. +6 −1 deps/Makefile
View
7 deps/Makefile
@@ -60,10 +60,15 @@ endif
LUA_CFLAGS+= -O2 -Wall -DLUA_ANSI $(CFLAGS)
LUA_LDFLAGS+= $(LDFLAGS)
+# lua's Makefile defines AR="ar rcu", which is unusual, and makes it more
+# challenging to cross-compile lua (and redis). These defines make it easier
+# to fit redis into cross-compilation environments, which typically set AR.
+AR = ar
+ARFLAGS = rcu
lua: .make-prerequisites
@printf '%b %b\n' $(MAKECOLOR)MAKE$(ENDCOLOR) $(BINCOLOR)$@$(ENDCOLOR)
- cd lua/src && $(MAKE) all CFLAGS="$(LUA_CFLAGS)" MYLDFLAGS="$(LUA_LDFLAGS)"
+ cd lua/src && $(MAKE) all CFLAGS="$(LUA_CFLAGS)" MYLDFLAGS="$(LUA_LDFLAGS)" AR="$(AR) $(ARFLAGS)"
.PHONY: lua
Something went wrong with that request. Please try again.