From 53baee1e33022fcba4d316b3952510c085173e02 Mon Sep 17 00:00:00 2001 From: Mark Pulford Date: Thu, 11 Aug 2011 19:46:36 +0930 Subject: Add work around for missing isinf() on Solaris Some versions of Solaris (Eg, Solaris 11 / GCC 3.4.3) are missing isinf(). Provide a work around when MISSING_ISINF is defined. Reported by: Zhang "agentzh" Yichun --- Makefile | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cfc7a74..d34ff6d 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,9 @@ LDFLAGS += -shared LUA_INCLUDE_DIR ?= $(PREFIX)/include LUA_LIB_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION) +# Some versions of Solaris are missing isinf(). Add -DMISSING_ISINF to +# CFLAGS to work around this bug. + #CFLAGS ?= -g -Wall -pedantic -fno-inline CFLAGS ?= -g -O3 -Wall -pedantic override CFLAGS += -fpic -I$(LUA_INCLUDE_DIR) -DVERSION=\"$(CJSON_VERSION)\" -- cgit v1.2.3-55-g6feb