diff --git a/packages/simplex-chat-nodejs/binding.gyp b/packages/simplex-chat-nodejs/binding.gyp index 151e4c862a..7fa2fdd5ae 100644 --- a/packages/simplex-chat-nodejs/binding.gyp +++ b/packages/simplex-chat-nodejs/binding.gyp @@ -1,14 +1,15 @@ { "targets": [ { - "target_name": "addon", + "target_name": "simplex-shim", "sources": [ "cpp/simplex.cc" ], "libraries": [ - "-Wl,-rpath,libs", - "-L<(module_root_dir)/build/Release/", "-L<(module_root_dir)/libs", "-lsimplex" + ], + "ldflags": [ + "-Wl,-rpath,'$$ORIGIN'/../../libs" ] } ] -} \ No newline at end of file +}