I'm trying to program a C++ module for node.js. Node is using waf as builder.
I want to check on configure, if the library "sigar" exists. What I'm trying to do so:
def configure(conf):
conf.check_cxx(lib='sigar')
When I run "node-waf configure", I get the following message:
Checking for library sigar : not found
But libsigar.so exists:
# whereis libsigar
libsigar: /lib64/libsigar.so
I also ran ldconfig after installing the "libsigar" library. The node module compiles, links and works without errors. Other libraries like libm, libboost_system and so on can be found on configure.
Can someone tell me what I am doing wrong? Is there anything special to do for installing a library than only copying a *.so to the library path and running ldconfig?
Thanks for any help.
Solved it on my own. Its pretty helpful to run configure with the -vvv option, for very verbose output.
When I tried to recompile the programm, I got a linker error which really helped:
Adding a linker flag before checking for libsigar solved the problem: