From 908ee33f2d7f0564d5e8160d2827fe9ec5ea109d Mon Sep 17 00:00:00 2001 From: Ashok Mudukutore Date: Thu, 25 Aug 2011 11:03:07 -0600 Subject: [PATCH] build: add RPATH environment variable Overrides default run-time library paths --- wscript | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wscript b/wscript index f1f177c3cd..aab08b2383 100644 --- a/wscript +++ b/wscript @@ -894,6 +894,9 @@ def build(bld): if not bld.env["USE_SHARED_V8"]: node.includes += ' deps/v8/include ' + if os.environ.has_key('RPATH'): + node.rpath = os.environ['RPATH'] + if sys.platform.startswith('cygwin'): bld.env.append_value('LINKFLAGS', '-Wl,--export-all-symbols') bld.env.append_value('LINKFLAGS', '-Wl,--out-implib,default/libnode.dll.a')