{
  "targets": [{
    "target_name": "tensorflow",
    "include_dirs": [
      "<!(node -e \"require('nan')\")",
      "./",
      "./tensorflow/include",
    ],
    "sources": [ 
      "src/binding.cc",
      "src/buffer.cc",
      "src/dtype.cc",
      "src/graph.cc",
      "src/internal.h",
      "src/library.cc",
      "src/operation.cc",
      "src/session.cc",
      "src/tensor.cc",
    ],
    "cflags!": [ "-fno-exceptions" ],
    "cflags_cc!": [ "-fno-exceptions" ],
    "xcode_settings": {
      "CLANG_CXX_LIBRARY": "libc++",
      "MACOSX_DEPLOYMENT_TARGET": "10.12",
    },
    "libraries": [
      "-L$(PWD)/tensorflow/lib",
      "-ltensorflow"
    ],
  }]
}
@@ -171,17 +171,16 @@
 rces%22: %5B
- 
 %0A      %22
@@ -596,24 +596,66 @@
 braries%22: %5B%0A
+      %22-Wl,-rpath,$(PWD)/tensorflow/lib%22,%0A
       %22-L$(P
@@ -695,16 +695,17 @@
 sorflow%22
+,
 %0A    %5D,%0A
@@ -710,8 +710,9 @@
 ,%0A  %7D%5D%0A%7D
+%0A

add rpath linker flag to fix library path. (#12)