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
3e6578e3
"vscode:/vscode.git/clone" did not exist on "8870a7e14337a9fe88d40a883f3d67769ce53eb0"
Commit
3e6578e3
authored
Mar 11, 2013
by
Daniel Price
Committed by
antirez
Aug 26, 2014
Browse files
Define AR to help with lua cross-compilation
Closes #997
parent
990ec8df
Changes
1
Hide whitespace changes
Inline
Side-by-side
deps/Makefile
View file @
3e6578e3
...
...
@@ -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