From 605b7e9763c37f45c499d867f254345b56dfe9f6 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 17 Sep 2009 15:36:31 +0200 Subject: [PATCH] Add node.installPrefix --- src/node.cc | 1 + src/node_version.h.in | 1 + 2 files changed, 2 insertions(+) diff --git a/src/node.cc b/src/node.cc index 286e68d0e7..e4a8404632 100644 --- a/src/node.cc +++ b/src/node.cc @@ -352,6 +352,7 @@ static Local Load(int argc, char *argv[]) { global_obj->Set(String::NewSymbol("node"), node_obj); node_obj->Set(String::NewSymbol("version"), String::New(NODE_VERSION)); + node_obj->Set(String::NewSymbol("installPrefix"), String::New(NODE_PREFIX)); int i, j; Local arguments = Array::New(argc - dash_dash_index + 1); diff --git a/src/node_version.h.in b/src/node_version.h.in index 75a934cde8..4263594212 100644 --- a/src/node_version.h.in +++ b/src/node_version.h.in @@ -7,5 +7,6 @@ # define NODE_VERSION "@VERSION@ (debug)" #endif #define NODE_CFLAGS "@CCFLAGS@ @CPPFLAGS@ -I@PREFIX@/include/node" +#define NODE_PREFIX "@PREFIX@" #endif /* node_version_h */