How to link a static library using WAF?
问题 I'm using OpenSSL in my C++ program, and I need to link crypto and ssl with it. If it were for example gcc, I would just pass: -lcrypto -lssl I am adding this dependency in Network-Simulator 3. But I don't know how to do this in WAF. How should I add them as a dependency? 回答1: First you need to check in configure if the library is available, then you can build it. def configure(cnf): # other parameters omitted for brevity cnf.check(lib=["crypto", "ssl"]) def build(bld): # other parameters