Skip to content

Commit fd713e1

Browse files
aredridelry
authored andcommitted
libeio and http_parser build with PIC code
Fix building as a shared library Closes nodejsGH-708.
1 parent 66601f1 commit fd713e1

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

deps/libeio/wscript

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,7 @@ def build(bld):
125125
libeio.install_path = None
126126
if bld.env["USE_DEBUG"]:
127127
libeio.clone("debug");
128+
if Options.options.product_type != 'program':
129+
libeio.ccflags = "-fPIC"
128130
bld.install_files('${PREFIX}/include/node/', 'eio.h');
129131

wscript

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,8 @@ def build(bld):
619619
http_parser.install_path = None
620620
if bld.env["USE_DEBUG"]:
621621
http_parser.clone("debug")
622+
if product_type_is_lib:
623+
http_parser.ccflags = '-fPIC'
622624

623625
### src/native.cc
624626
def make_macros(loc, content):

0 commit comments

Comments
 (0)