title: how to add dependence to static library in binding.gyp node-gyp for node.js extension
body: <p>I have a simple binding.gyp file for building my node.js extension. I want to change the linking method of the library "mylib" and link it statically instead of using shared library.</p>
  
  <pre><code>{
    "targets": [
      {
        "target_name": "myext",
        "sources": [
          "code/main.cpp",
          "code/load.cpp",
          "include/load.h"
        ],
        "include_dirs": [
          "include", "../Library/include"
        ],
        "libraries": [
          "-lmylib", "-L/home/admin/MyLib/Library/binaries/linux/Release"
        ],
        "cflags!": [ "-fno-exceptions" ],
        "cflags": [ "-std=c++11" ],
        "cflags_cc!": [ "-fno-exceptions" ]
      }
    ]
  }
  </code></pre>
  
  <p>The static and shared versions of mylib are in the same directory:</p>
  
  <pre><code># ls /home/admin/MyLib/Library/binaries/linux/Release
  libmylib.a libmylib.so
  </code></pre>
  
  <p>I want to link statically to avoid library installing/loading issues.</p>