]> git.pld-linux.org Git - packages/nodejs.git/commitdiff
- Fixes building as a shared library
authoraredridel <aredridel@pld-linux.org>
Mon, 21 Feb 2011 18:49:33 +0000 (18:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nodejs-sharedlib.patch -> 1.1

nodejs-sharedlib.patch [new file with mode: 0644]

diff --git a/nodejs-sharedlib.patch b/nodejs-sharedlib.patch
new file mode 100644 (file)
index 0000000..e1cd205
--- /dev/null
@@ -0,0 +1,25 @@
+diff --git a/deps/libeio/wscript b/deps/libeio/wscript
+index 5194ead..280dca6 100644
+--- a/deps/libeio/wscript
++++ b/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');
+diff --git a/wscript b/wscript
+index de5ee45..51a46ec 100644
+--- a/wscript
++++ b/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):
This page took 0.045742 seconds and 4 git commands to generate.