Permalink
Browse files

Seeing if linking against NODE_PATH has any effect on dynamic linking.

Signed-off-by: Nick Campbell <nicholas.j.campbell@gmail.com>
  • Loading branch information...
1 parent d6e1580 commit facabc9dff8007ad05d863704ccefe8af6c831e7 @ncb000gt ncb000gt committed Feb 19, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 wscript
View
@@ -17,14 +17,18 @@ def configure(conf):
conf.check_tool("node_addon")
o = Options.options
+ nodepath = 'NODE_PATH' in os.environ and os.environ['NODE_PATH'] or None
+
libpath = ['/lib', '/usr/lib', '/usr/local/lib', '/opt/local/lib', '/usr/sfw/lib']
+ if nodepath:
+ libpath.append(nodepath)
includes = ['/usr/include', '/usr/includes', '/usr/local/includes', '/opt/local/includes', '/usr/sfw/lib'];
libssl = conf.check(lib="ssl",
header_name='openssl/rand.h',
- function_name='RAND_bytes',
includes=includes,
libpath=libpath,
+ mandatory=True,
uselib_store='OPENSSL')
if sys.platform == "cygwin":

0 comments on commit facabc9

Please sign in to comment.