From dd72edeb715a2e328cd93606368952fef7377308 Mon Sep 17 00:00:00 2001 From: "Jeffrey H. Johnson" Date: Wed, 7 Apr 2021 07:06:44 -0400 Subject: [PATCH] Update GNUmakefile: Support Solaris/illumos w/GCC --- GNUmakefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/GNUmakefile b/GNUmakefile index 41b2a2d..6284fa8 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -25,6 +25,25 @@ CFEXTRA=-pipe #CFEXTRA+=-Ofast -fomit-frame-pointer -march=native \ # -fstack-protector-strong -D_FORTIFY_SOURCE=2 +############################################################################# + +ifeq ($(OS), sunos) + CFL=-O2 -fcommon $(CFEXTRA) + CC=gcc + SYSTYPE=SYSV + OPTIONS=-D$(SYSTYPE)=1 -DRUNOPTS=1 -DUSEDIRENT=1 + CFLAGS+=$(CFL) $(OPTIONS) + RM=rm -f + TEST=test + SIZE=size + STRIP=strip + MKDIR=mkdir -p + CP=cp -f + OBJE=.o + MINCE_CONFIGURED=1 +endif + + ############################################################################# ifeq ($(OS), haiku)