Blame SOURCES/http-parser-gyp-sharedlib.patch

04d35d
--- http_parser.gyp~	2012-11-27 15:40:11.721398004 -0700
04d35d
+++ http_parser.gyp	2012-11-27 15:40:11.721398004 -0700
04d35d
@@ -12,7 +12,7 @@
04d35d
       #       RuntimeLibrary MUST MATCH across the entire project
04d35d
       'Debug': {
04d35d
         'defines': [ 'DEBUG', '_DEBUG' ],
04d35d
-        'cflags': [ '-Wall', '-Wextra', '-O0', '-g', '-ftrapv' ],
04d35d
+        'cflags': [ '-Wall', '-Wextra', '-g', '-ftrapv' ],
04d35d
         'msvs_settings': {
04d35d
           'VCCLCompilerTool': {
04d35d
             'RuntimeLibrary': 1, # static debug
04d35d
@@ -21,7 +21,7 @@
04d35d
       },
04d35d
       'Release': {
04d35d
         'defines': [ 'NDEBUG' ],
04d35d
-        'cflags': [ '-Wall', '-Wextra', '-O3' ],
04d35d
+        'cflags': [ '-Wall', '-Wextra' ],
04d35d
         'msvs_settings': {
04d35d
           'VCCLCompilerTool': {
04d35d
             'RuntimeLibrary': 0, # static release
04d35d
@@ -50,7 +50,8 @@
04d35d
   'targets': [
04d35d
     {
04d35d
       'target_name': 'http_parser',
04d35d
-      'type': 'static_library',
04d35d
+      'type': 'shared_library',
04d35d
+      'product_extension': 'so.<(soname_version)', 
04d35d
       'include_dirs': [ '.' ],
04d35d
       'direct_dependent_settings': {
04d35d
         'defines': [ 'HTTP_PARSER_STRICT=0' ],
04d35d
@@ -73,7 +74,8 @@
04d35d
 
04d35d
     {
04d35d
       'target_name': 'http_parser_strict',
04d35d
-      'type': 'static_library',
04d35d
+      'type': 'shared_library',
04d35d
+      'product_extension': 'so.<(soname_version)',
04d35d
       'include_dirs': [ '.' ],
04d35d
       'direct_dependent_settings': {
04d35d
         'defines': [ 'HTTP_PARSER_STRICT=1' ],