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
hiredis
Commits
d8145d79
Commit
d8145d79
authored
Apr 16, 2015
by
Jan-Erik Rediger
Browse files
Always compile with C99 standard.
Turns out: gnu9x defines `unix` to 1, making it unusable as a variable name.
parent
31436c33
Changes
1
Hide whitespace changes
Inline
Side-by-side
Makefile
View file @
d8145d79
...
@@ -39,7 +39,7 @@ CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
...
@@ -39,7 +39,7 @@ CC:=$(shell sh -c 'type $(CC) >/dev/null 2>/dev/null && echo $(CC) || echo gcc')
OPTIMIZATION
?=
-O3
OPTIMIZATION
?=
-O3
WARNINGS
=
-Wall
-W
-Wstrict-prototypes
-Wwrite-strings
WARNINGS
=
-Wall
-W
-Wstrict-prototypes
-Wwrite-strings
DEBUG
?=
-g
-ggdb
DEBUG
?=
-g
-ggdb
REAL_CFLAGS
=
$(OPTIMIZATION)
-fPIC
$(CFLAGS)
$(WARNINGS)
$(DEBUG)
$(ARCH)
REAL_CFLAGS
=
$(OPTIMIZATION)
-fPIC
-std
=
c99
-pedantic
$(CFLAGS)
$(WARNINGS)
$(DEBUG)
$(ARCH)
REAL_LDFLAGS
=
$(LDFLAGS)
$(ARCH)
REAL_LDFLAGS
=
$(LDFLAGS)
$(ARCH)
DYLIBSUFFIX
=
so
DYLIBSUFFIX
=
so
...
@@ -133,7 +133,7 @@ check: hiredis-test
...
@@ -133,7 +133,7 @@ check: hiredis-test
kill
`
cat
/tmp/hiredis-test-redis.pid
`
kill
`
cat
/tmp/hiredis-test-redis.pid
`
.c.o
:
.c.o
:
$(CC)
-std
=
c99
-pedantic
-c
$(REAL_CFLAGS)
$<
$(CC)
-c
$(REAL_CFLAGS)
$<
clean
:
clean
:
rm
-rf
$(DYLIBNAME)
$(STLIBNAME)
$(TESTS)
$(PKGCONFNAME)
examples/hiredis-example
*
*
.o
*
.gcda
*
.gcno
*
.gcov
rm
-rf
$(DYLIBNAME)
$(STLIBNAME)
$(TESTS)
$(PKGCONFNAME)
examples/hiredis-example
*
*
.o
*
.gcda
*
.gcno
*
.gcov
...
...
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