From f871317b3a25b5c01bc729a4261c30e5027d0249 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rene=CC=81=20Lux?= Date: Sat, 24 Mar 2012 13:16:00 +0800 Subject: [PATCH] Fix to build on macosx Lion --- makefile | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index e835690..86b3512 100644 --- a/makefile +++ b/makefile @@ -1,9 +1,21 @@ -all: waf install +all: + waf install waf: node-waf configure build install: + UNAME := $(shell uname) + + ifeq ($(UNAME), Darwin) + VERSION := $(shell sw_vers | grep 'ProductVersion:' | grep -o '[0-9]*\.[0-9]*\.[0-9]*') + + ifeq($(VERSION), 10.7.3) + @sudo ln -sf /usr/local/include/node/node.h /usr/local/include/node/ev.h + @CXXFLAGS=-I/usr/local/include/node/uv-private/ + endif + endif + @mkdir -p ~/.node_modules && cp ./build/Release/hashlib.node ~/.node_modules/hashlib.node tests: