From a49c5a816c89a706dcaa439010ef12a75794deaa Mon Sep 17 00:00:00 2001 From: Jesper Louis Andersen Date: Sat, 29 Aug 2015 21:31:44 +0200 Subject: [PATCH] Introduce SunOS/Illumos support into the mix. --- c_src/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/c_src/Makefile b/c_src/Makefile index 05beed3..1d2998d 100644 --- a/c_src/Makefile +++ b/c_src/Makefile @@ -26,6 +26,11 @@ else ifeq ($(UNAME_SYS), Linux) CC ?= gcc CFLAGS ?= -O3 -std=c99 -finline-functions -Wall -Wmissing-prototypes CXXFLAGS ?= -O3 -finline-functions -Wall +else ifeq ($(UNAME_SYS), SunOS) + CC = gcc + CFLAGS ?= -m64 -I/opt/local/include -O2 -std=c99 -finline-functions -Wall -Wmissing-prototypes + CXXFALGS ?= -O2 -finline-function -Wall + LDFLAGS ?= -m64 -fPIC -L /opt/local/lib endif CFLAGS += -fPIC -I $(ERTS_INCLUDE_DIR) -I $(ERL_INTERFACE_INCLUDE_DIR)