how to add dependence to static library in binding.gyp node-gyp for node.js extension

前端 未结 2 1079
遇见更好的自我
遇见更好的自我 2021-01-01 18:53

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 shar

2条回答
  •  轮回少年
    2021-01-01 18:58

    Just add the path of static .a or .so file in the "libraries" section,

    "libraries": [ "/usr/local/lib/libnetfilter_queue.so.1.3.0" ]

提交回复
热议问题