aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2011-08-11 19:46:36 +0930
committerMark Pulford <mark@kyne.com.au>2011-08-11 19:46:36 +0930
commit53baee1e33022fcba4d316b3952510c085173e02 (patch)
treeaed27e186b05a3bd8e5e2cec48095527fc29143c /Makefile
parent1fc923da45731b39e6aea9f50543cd7e8b0e4ad8 (diff)
downloadlua-cjson-53baee1e33022fcba4d316b3952510c085173e02.tar.gz
lua-cjson-53baee1e33022fcba4d316b3952510c085173e02.tar.bz2
lua-cjson-53baee1e33022fcba4d316b3952510c085173e02.zip
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 <agentzh@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cfc7a74..d34ff6d 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,9 @@ LDFLAGS += -shared
15LUA_INCLUDE_DIR ?= $(PREFIX)/include 15LUA_INCLUDE_DIR ?= $(PREFIX)/include
16LUA_LIB_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION) 16LUA_LIB_DIR ?= $(PREFIX)/lib/lua/$(LUA_VERSION)
17 17
18# Some versions of Solaris are missing isinf(). Add -DMISSING_ISINF to
19# CFLAGS to work around this bug.
20
18#CFLAGS ?= -g -Wall -pedantic -fno-inline 21#CFLAGS ?= -g -Wall -pedantic -fno-inline
19CFLAGS ?= -g -O3 -Wall -pedantic 22CFLAGS ?= -g -O3 -Wall -pedantic
20override CFLAGS += -fpic -I$(LUA_INCLUDE_DIR) -DVERSION=\"$(CJSON_VERSION)\" 23override CFLAGS += -fpic -I$(LUA_INCLUDE_DIR) -DVERSION=\"$(CJSON_VERSION)\"