1diff -Naur http-parser-2.1-orig/http_parser.gyp http-parser-2.1/http_parser.gyp
2--- http-parser-2.1-orig/http_parser.gyp 2013-03-26 18:35:20.000000000 -0400
3+++ http-parser-2.1/http_parser.gyp 2013-05-23 16:47:49.280488341 -0400
4@@ -21,7 +21,7 @@
5 },
6 'Release': {
7 'defines': [ 'NDEBUG' ],
8- 'cflags': [ '-Wall', '-Wextra', '-O3' ],
9+ 'cflags': [ '-Wall', '-Wextra', '-O3', '-fPIC' ],
10 'msvs_settings': {
11 'VCCLCompilerTool': {
12 'RuntimeLibrary': 0, # static release
13@@ -50,7 +50,7 @@
14 'targets': [
15 {
16 'target_name': 'http_parser',
17- 'type': 'static_library',
18+ 'type': 'shared_library',
19 'include_dirs': [ '.' ],
20 'direct_dependent_settings': {
21 'defines': [ 'HTTP_PARSER_STRICT=0' ],
22@@ -73,7 +73,7 @@
23
24 {
25 'target_name': 'http_parser_strict',
26- 'type': 'static_library',
27+ 'type': 'shared_library',
28 'include_dirs': [ '.' ],
29 'direct_dependent_settings': {
30 'defines': [ 'HTTP_PARSER_STRICT=1' ],