Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
b57a4d07
Commit
b57a4d07
authored
Mar 11, 2013
by
Daniel Price
Committed by
antirez
Aug 12, 2014
Browse files
Define AR to help with lua cross-compilation
Closes #997
parent
ded57795
Changes
1
Hide whitespace changes
Inline
Side-by-side
deps/Makefile
View file @
b57a4d07
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment