Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

libeio and http_parser build with PIC code

Fix building as a shared library

Closes GH-708.
  • Loading branch information...
commit fd713e1dc75ebecafbeec3df8e2102f11cb7714e 1 parent 66601f1
@aredridel aredridel authored ry committed
Showing with 4 additions and 0 deletions.
  1. +2 −0  deps/libeio/wscript
  2. +2 −0  wscript
View
2  deps/libeio/wscript
@@ -125,5 +125,7 @@ def build(bld):
libeio.install_path = None
if bld.env["USE_DEBUG"]:
libeio.clone("debug");
+ if Options.options.product_type != 'program':
+ libeio.ccflags = "-fPIC"
bld.install_files('${PREFIX}/include/node/', 'eio.h');
View
2  wscript
@@ -619,6 +619,8 @@ def build(bld):
http_parser.install_path = None
if bld.env["USE_DEBUG"]:
http_parser.clone("debug")
+ if product_type_is_lib:
+ http_parser.ccflags = '-fPIC'
### src/native.cc
def make_macros(loc, content):
Please sign in to comment.
Something went wrong with that request. Please try again.