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
b83e9583
Commit
b83e9583
authored
Oct 30, 2011
by
Ben Noordhuis
Browse files
build: fix sunos build, compile lua with __C99FEATURES__=1
parent
db6a2e7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Makefile
View file @
b83e9583
...
...
@@ -6,6 +6,8 @@ release_hdr := $(shell sh -c './mkreleasehdr.sh')
uname_S
:=
$(
shell
sh
-c
'uname -s 2>/dev/null || echo not'
)
OPTIMIZATION
?=
-O2
LUA_CFLAGS
=
-O2
-Wall
ifeq
($(uname_S),Linux)
ifneq
($(FORCE_LIBC_MALLOC),yes)
USE_JEMALLOC
=
yes
...
...
@@ -13,6 +15,8 @@ ifeq ($(uname_S),Linux)
endif
ifeq
($(uname_S),SunOS)
# make isinf() available
LUA_CFLAGS
+=
-D__C99FEATURES__
=
1
CFLAGS
?=
-std
=
c99
-pedantic
$(OPTIMIZATION)
-Wall
-W
-D__EXTENSIONS__
-D_XPG6
CCLINK
?=
-ldl
-lnsl
-lsocket
-lm
-lpthread
DEBUG
?=
-g
-ggdb
...
...
@@ -163,7 +167,7 @@ dependencies:
@
printf
'%b %b\n'
$(MAKECOLOR)
MAKE
$(ENDCOLOR)
$(BINCOLOR)
linenoise
$(ENDCOLOR)
@
cd
../deps/linenoise
&&
$(MAKE)
ARCH
=
"
$(ARCH)
"
@
echo
$(MAKECOLOR)
MAKE
$(ENDCOLOR)
$(BINCOLOR)
Lua ansi
$(ENDCOLOR)
@
cd
../deps/lua
&&
$(MAKE)
ARCH
=
"
$(ARCH)
"
ansi
@
cd
../deps/lua
&&
$(MAKE)
ARCH
=
"
$(ARCH)
"
CFLAGS
=
"
$(LUA_CFLAGS)
"
ansi
../deps/jemalloc/lib/libjemalloc.a
:
cd
../deps/jemalloc
&&
./configure
$(JEMALLOC_CFLAGS)
--with-jemalloc-prefix
=
je_
--enable-cc-silence
&&
$(MAKE)
lib/libjemalloc.a
...
...
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