Skip to content

Commit

Permalink
Makefile: fix building with Solaris C compiler, 64 bit.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Feb 23, 2017
1 parent ed7e331 commit 9cc83d2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ DEBUG=-g -ggdb

ifeq ($(uname_S),SunOS)
# SunOS
ifneq ($(@@),32bit)
CFLAGS+= -m64
LDFLAGS+= -m64
endif
DEBUG=-g
DEBUG_FLAGS=-g
export CFLAGS LDFLAGS DEBUG DEBUG_FLAGS
INSTALL=cp -pf
FINAL_CFLAGS+= -D__EXTENSIONS__ -D_XPG6
FINAL_LIBS+= -ldl -lnsl -lsocket -lresolv -lpthread -lrt
Expand Down

0 comments on commit 9cc83d2

Please sign in to comment.