]> git.pld-linux.org Git - packages/nodejs-gyp.git/commitdiff
link built modules with libnode auto/th/nodejs-gyp-0.9.5-2
authorElan Ruusamäe <glen@delfi.ee>
Mon, 8 Apr 2013 17:11:41 +0000 (20:11 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 8 Apr 2013 17:11:41 +0000 (20:11 +0300)
this ensures we catch when abi (soname) changes

link-libnode.patch [new file with mode: 0644]
nodejs-gyp.spec

diff --git a/link-libnode.patch b/link-libnode.patch
new file mode 100644 (file)
index 0000000..c1d54d3
--- /dev/null
@@ -0,0 +1,12 @@
+--- nodejs-gyp-0.9.5/addon.gypi~       2013-03-09 01:42:19.000000000 +0200
++++ nodejs-gyp-0.9.5/addon.gypi        2013-04-08 20:07:37.237603565 +0300
+@@ -39,6 +39,9 @@
+       }],
+       [ 'OS=="freebsd" or OS=="openbsd" or OS=="solaris" or (OS=="linux" and target_arch!="ia32")', {
+         'cflags': [ '-fPIC' ],
++      }],
++      [ '1==1', {
++        'libraries': [ '-lnode' ],
+       }]
+     ]
+   }
index 3a6e69caa99b4a256ba9fe64baafb546fd7a2dd2..0b1b2d6ccca5e95534ffd0bfed8a63498d86e564 100644 (file)
@@ -2,7 +2,7 @@
 Summary:       Node.js native addon build tool
 Name:          nodejs-gyp
 Version:       0.9.5
-Release:       1
+Release:       2
 License:       MIT
 Group:         Development/Libraries
 URL:           https://github.com/TooTallNate/node-gyp
@@ -10,6 +10,7 @@ Source0:      http://registry.npmjs.org/node-gyp/-/node-gyp-%{version}.tgz
 # Source0-md5: 3d8a5cf4b5b92457af68035bb0e0e96f
 Patch0:                jobs-alias.patch
 Patch1:                system-gyp.patch
+Patch2:                link-libnode.patch
 BuildRequires: sed >= 4.0
 Requires:      gyp
 Requires:      make
@@ -51,6 +52,7 @@ replacement to the node-waf program which is removed for node v0.8.
 mv package/* .
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 # fix shebangs
 %{__sed} -i -e '1s,^#!.*node,#!/usr/bin/node,' \
This page took 0.057478 seconds and 4 git commands to generate.