Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
libeio and http_parser build with PIC code
Browse files Browse the repository at this point in the history
Fix building as a shared library

Closes GH-708.
  • Loading branch information
aredridel authored and ry committed Feb 25, 2011
1 parent 66601f1 commit fd713e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions deps/libeio/wscript
Expand Up @@ -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');

2 changes: 2 additions & 0 deletions wscript
Expand Up @@ -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):
Expand Down

0 comments on commit fd713e1

Please sign in to comment.