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
56dba3ad
Commit
56dba3ad
authored
Sep 09, 2016
by
antirez
Browse files
Example modules: Add C99 standard to cflags.
parent
d35deb23
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/modules/Makefile
View file @
56dba3ad
...
@@ -4,10 +4,10 @@ uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
...
@@ -4,10 +4,10 @@ uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
# Compile flags for linux / osx
# Compile flags for linux / osx
ifeq
($(uname_S),Linux)
ifeq
($(uname_S),Linux)
SHOBJ_CFLAGS
?=
-fno-common
-g
-ggdb
SHOBJ_CFLAGS
?=
-fno-common
-g
-ggdb
-std
=
c99
SHOBJ_LDFLAGS
?=
-shared
SHOBJ_LDFLAGS
?=
-shared
else
else
SHOBJ_CFLAGS
?=
-dynamic
-fno-common
-g
-ggdb
SHOBJ_CFLAGS
?=
-dynamic
-fno-common
-g
-ggdb
-std
=
c99
SHOBJ_LDFLAGS
?=
-bundle
-undefined
dynamic_lookup
SHOBJ_LDFLAGS
?=
-bundle
-undefined
dynamic_lookup
endif
endif
...
...
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