Permalink
Browse files

addon.gypi: make the -install_name use "@loader_path"

This seems more appropriate for how node native addons are build, such that
you don't actually know where the addon will reside when installed. Before,
addons would get "/usr/local/lib/binding.node" hard-coded into their load-path
and that is just plain wrong.

Still need to look into if this is necessary for other Unix platforms than OS X.
  • Loading branch information...
1 parent 5c8116b commit 5c3eb824aa724512b1f38d9c7d71c43fd5434258 @TooTallNate TooTallNate committed Oct 4, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 addon.gypi
View
@@ -17,6 +17,9 @@
'conditions': [
[ 'OS=="mac"', {
'libraries': [ '-undefined dynamic_lookup' ],
+ 'xcode_settings': {
+ 'DYLIB_INSTALL_NAME_BASE': '@loader_path'
+ },
}],
[ 'OS=="win"', {
'libraries': [ '-l<(node_root_dir)/$(Configuration)/node.lib' ],

0 comments on commit 5c3eb82

Please sign in to comment.