From 1f0dae3c7fcffe6cd244e4802bd912f749f173e2 Mon Sep 17 00:00:00 2001 From: Salvatore Sanfilippo Date: Fri, 24 Feb 2017 00:00:13 +0800 Subject: [PATCH] Makefile: fix building with Solaris C compiler, 64 bit. --- src/Makefile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Makefile b/src/Makefile index 8cf6ba6f8..5d2b2b395 100644 --- a/src/Makefile +++ b/src/Makefile @@ -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