Use more aggressive optimization
This commit is contained in:
parent
f625d97b9b
commit
ff50dff70d
2
Makefile
2
Makefile
@ -6,7 +6,7 @@ OBJ = net.o hiredis.o sds.o async.o
|
|||||||
BINS = hiredis-example hiredis-test
|
BINS = hiredis-example hiredis-test
|
||||||
|
|
||||||
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
|
uname_S := $(shell sh -c 'uname -s 2>/dev/null || echo not')
|
||||||
OPTIMIZATION?=-O2
|
OPTIMIZATION?=-O3
|
||||||
ifeq ($(uname_S),SunOS)
|
ifeq ($(uname_S),SunOS)
|
||||||
CFLAGS?= -std=c99 -pedantic $(OPTIMIZATION) -fPIC -Wall -W -D__EXTENSIONS__ -D_XPG6
|
CFLAGS?= -std=c99 -pedantic $(OPTIMIZATION) -fPIC -Wall -W -D__EXTENSIONS__ -D_XPG6
|
||||||
CCLINK?= -ldl -lnsl -lsocket -lm -lpthread
|
CCLINK?= -ldl -lnsl -lsocket -lm -lpthread
|
||||||
|
Loading…
Reference in New Issue
Block a user