Hi, I have a native module (http://github.com/qzaidi/magickwand) that builds just fine with node-waf. Now that node 0.8 is due to be released, and also because node-waf isn't building correctly on SmartOS, I am trying to switch to node-gyp. However, while it builds, the resulting magickwand.node file is unusable. I am pretty sure this is some issue with the binding.gyp file I am using, but not quite able to figure it out.
When I load the module in node, I get undefined symbols error, and that is because ldd output for node-gyp built module fails to show the correct dependencies. ldd magickwand.node (Built with node-waf) linux-gate.so.1 => (0xb7877000) libMagickWand.so.3 => /usr/lib/libMagickWand.so.3 (0xb7753000) libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb7668000) libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb764a000) libc.so.6 => /lib/i386-linux-gnu/tls/i686/nosegneg/libc.so.6 (0xb74cd000) .... and others ldd magickwand.node (Built with node-gyp) linux-gate.so.1 => (0xb7844000) libc.so.6 => /lib/i386-linux-gnu/tls/i686/nosegneg/libc.so.6 (0xb76b7000) /lib/ld-linux.so.2 (0xb7845000) Here's the binding.gyp I am using. { "targets": [ { "target_name": "libmagickwand", "sources": [ "src/magickwand.cpp" ], 'libraries': [ '<!@(Magick-config --libs)' ], "conditions": [ ['OS=="mac"', { 'xcode_settings': { 'OTHER_CFLAGS': [ '<!@(Magick-config --cflags)' ], } }, { 'cflags': [ '<!@(Magick-config --cflags)' ] }] ] } ] } What do I fix here to get node-gyp use the correct linker flags? Any clues will be much appreciated. Thanks Qasim -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en